kOS/prog/nodestats.ks
2021-08-05 22:15:05 -04:00

16 lines
447 B
Plaintext

@lazyglobal off.
runoncepath("/lib/node").
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.".
}