Jump to content

Launch optimisation


Flibble

Recommended Posts

This is really a post to gauge interest in a tool I made for my RO game. It simulates many launches (512 to be exact) to calculate the best pitch over angle and speed (and a few other things). I don't think there's anything out there that does this at the moment. It's fairly quick, a run of 512 launches over 10 minutes of game time takes around 3 seconds on a typical desktop.

I've not tried it for a stock game but it should work in theory. The only issue would be drag calculations as I'm relying on FAR for that.

Here's a screenshot for an early orbital rocket:

y4ml7OgkZDmHkpM0KX9GZPN0J4-BRy3iDyaid1kb

You can see the heat maps on the left which show how good each launch is rated in various things. The main graph shows details for the selected launch.

If there's some interest in this I'll get it tidied up and released on github.

Link to comment
Share on other sites

Awesome.

Next steps, other than getting it ready for release would be trying it with stock setup and coming up with some drag modelling for stock.

Also it currently uses powered explicit guidance since I wrote it as a bit of a test bed for that, so I'll need to get it fixed for burn and coast I think.

Link to comment
Share on other sites

The closest to this I've seen is in the GravityTurn mod, which will vary the pitchover angle and speed over consecutive launches of the same craft and can produce a similar graph for your current launch.  It doesn't do it as a simulation however, and will only show you the current launch.  (And it's graph is less detailed.)

Link to comment
Share on other sites

I've set up a github repo with the WIP stuff in. Not really release ready yet, but if anyone wants a look, they are welcome to. I've started trying to get Stock settings working also, but they're not quite there yet (I think I need a stock rocket as my RO rocket doesn't really work correctly in Stock).

https://github.com/RCrockford/ksp-launch-optimisation

Link to comment
Share on other sites

  • 2 weeks later...

Slow going on this, sorry everyone. Just other things getting in the way.

I have been poking at the Kerbin launch profile and it seems to be somewhat working now, though the flight path isn't quite right so it's giving fairly poor orbits. ~3500 m/s to orbit though, so I'm in the right ballpark.

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...