Jump to content

Delta V Calculator


Recommended Posts

**Updated to comply with forum rules. Download now contains source code and license**

Hi guys, thought I'd share a little project I've been working on. The aerospace engineer in me wanted a way to accurately calculate delta V requirements for getting into orbit about various planets. The KSP wiki page has some estimates, but I like accuracy. Paired with Mechjeb this makes for more efficient rocket building. In it's current form it just calculates delta V to get into a desired orbit, where orbit height, flight path angle, orbit inclination, and launch latitude are input variables, along with choosing what planet/moon. I'd like to eventually flesh this out as a full mission planner.

I decided to use Matlab because that's what I'm most familiar with in terms of programming. My only other option was Xcode and write an OS X application, but I don't really know objective-C (only know C++) and that's restricting with no Windows support. Matlab is great because it has a GUI builder that's easy to use. It also has a compiler for running GUIs outside of Matlab. The only downside is you have to have Matlab Compiler Runtime (MCR) installed to run the program. This is a bit prohibitive because it's a large program, at almost half a gig. It is free thought so anyone can run it. If someone is interested and has and would like to write a new GUI I'd be happy to collaborate.

You may also be wondering how I did the calculations for planets with atmosphere. For simplicity, I assumed the delta V due to drag was constant, and through testing figured out a number to use for Kerbin. I don't currently have numbers for Eve, Duna, and Laythe because I haven't gotten there. The numbers for Kerbin are pretty accurate though.

Here's a picture of the GUI.

deltaV_zps3bc73a33.png

VERSION 1.02

Delta V installer for Windows

Source Code

The installer will automatically download and install MCR if you don't have it. If you do have MCR installed it will skip that step and just install the application.

Planned features:

- Orbit changes

- Inclination changes

- Hohmann Transfers

- Orbit Insertions

- Landing

Notes:

For best results use MechJeb and enable the "Keep under terminal velocity" function when ascending on planets/moons with an atmosphere.

Change Log


Version 1.02 -March 22, 2014
* Fixed error message for to low an orbit about Eve, Kerbal, Duna, and Laythe. Error was being superseded by another less important message

Version 1.01 -March 22, 2014
* Fixed font size of messages, some longer messages were getting cut off

Version 1.00 -March 22, 2014
* Initial release

Edited by freeskier93
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...