Jump to content

How does MechJeb calculate which direction to make a manuever


RocketSon4

Recommended Posts

Premise: you have a vessel in orbit that you want to get to a very specific orbit. Only one point on your current orbit intersects with your final orbit, and you are only allowed one maneuver. How does MechJeb calculate which direction on the NAVball to burn? I am specifically looking for equations here, btw. Thanks

Link to comment
Share on other sites

I'd start here:

https://github.com/MuMech/MechJeb2/blob/dev/MechJeb2/OrbitalManeuverCalculator.cs

The code is highly modularized, so you have to do quite a bit of digging to actually understand what's going on in any given module.

I'm not an expert on the source or the math,  just a terrible programmer trying to learn things. (Also, this is the first time I've looked at it in half a decade.)

Link to comment
Share on other sites

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