Nivekk / KOS

Fully programmable autopilot mod for KSP.
Other
80 stars 30 forks source link

No way to read current nodeless encounter. #274

Open Dunbaratu opened 10 years ago

Dunbaratu commented 10 years ago

If you have a maneuver node set, you can get the encounter the maneuver node will cause if you were to perform the maneuver.

But if you are already coasting to an encounter without performing any maneuvers (i.e. your "blue line" has an encounter), KOS claims you have no encounter.

My temporary workaround has been to set a dummy maneuver node of zero delta-V at my current position, check for encounter, then remove the node:

set x to node(time:seconds+5,0,0,0). // Must put the node a few seconds into the future for this to work right. add x. set enc to encounter. remove x.

Now I can use 'enc' as the "blue line" encounter.

(EDIT: changed the time of the node to time:seconds+5.)

Dunbaratu commented 10 years ago

If you add it to the wiki please note the addendum edit I just made above.