Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delta-V #5

Open
hugopeeters opened this issue Jan 6, 2018 · 2 comments
Open

Delta-V #5

hugopeeters opened this issue Jan 6, 2018 · 2 comments

Comments

@hugopeeters
Copy link
Owner

Delta-V is not calculated and sent to the controller. Should be possible to loop through all the parts on the vessel to get the mass. An alternative way would be to rely on a different mod to do the calculations, but I would prefer not to depend on other mods.

@phardy
Copy link

phardy commented Jan 8, 2018

For what it's worth, I've had a long standing wishlist item to remove most of the calculations, and instead integrate with VOID. My take on it is that avoiding duplication of effort (both in writing code, and in execution time with multiple plugins running their own code to do the same thing every update) is a bigger win.

You may also be interested in seeing how Better Burn Time calculates dV.

@rspeed
Copy link

rspeed commented Apr 17, 2020

The game (as of 1.8?) calculates the d-V of each stage. I don't know if that information is available through the API.

Edit: Okay, that was surprisingly easy to find. ShipConstruct objects have a property named vesselDeltaV. That's an instance of VesselDeltaV, which seems to contain all of the relevant information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants