Nivekk / KOS

Fully programmable autopilot mod for KSP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No way to read current nodeless encounter.

Dunbaratu opened this issue · comments

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

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