MuMech / MechJeb2

MechJeb2 - KSP mod
Other
1k stars 251 forks source link

[Suggestion] Changing the LAN #153

Closed moverperfect closed 10 years ago

moverperfect commented 11 years ago

Would it be possible to add a function in the manuever planner that changes your LAN to a specified amount? Or have an option to change the inclination at a location that would make the LAN a specified amount?

moverperfect commented 11 years ago

Having a look at the code, i guess what i am asking is to add a TimeReference.X_OF_LAN and inside that it has something that calculates how long it will take to get to that new LAN and adds that to UT, i do not know if this would be possible, i just thought that this may give a better insight into what i was looking for. I would try to do this myself but i lack the experience and software needed to add this. If nobody wants to take this on, i will try to gain these attributes to change the code myself.

sarbian commented 11 years ago

Can you say what the LAN is ? ^^

moverperfect commented 11 years ago

Longitude of the ascending node, you can find it in the Orbit info i think, or you might have to add it through the window editor.

sarbian commented 11 years ago

Orbital math is not really my thing but with a few search I found a mathlab library with a function that : "calculates the necessary dV and the initial and final argument of longitude for a change in the right ascension of the ascending node." http://www.mathworks.fr/matlabcentral/fileexchange/13439-orbital-mechanics-library/content/NodeChange.m It's seem to do what you want ? I'll see if I can extract the math from that and put them in MJ. But no sooner than next week.

bk2w commented 10 years ago

This functionality is already present (added in commit aee6474).

sarbian commented 10 years ago

Indeed