kOS/prog/nodestats.ks

16 lines
453 B
Plaintext

@lazyglobal off.
runoncepath("/lib/navigation").
if HASNODE {
print "Node dV: " + NEXTNODE:DELTAV:MAG.
print "Burn time: " + BurnTime(NEXTNODE:DELTAV:MAG).
print "Lead time: " + BurnTime(NEXTNODE:DELTAV:MAG / 2).
print "Node UT: " + NEXTNODE:TIME.
print "Node ETA: " + NEXTNODE:ETA.
local stageStatus is choose "yes" if WillStage(NEXTNODE:DELTAV:MAG) else "no".
print "Will stage? " + stageStatus.
} else {
print "No node planned.".
}