Add node execution code.
This commit is contained in:
parent
34ddc42b37
commit
e0d1c34b46
6 changed files with 71 additions and 26 deletions
17
nextnode.ks
Normal file
17
nextnode.ks
Normal file
|
@ -0,0 +1,17 @@
|
|||
runpathonce("lib/navigation").
|
||||
runpathonce("lib/throttle").
|
||||
|
||||
SAS off.
|
||||
local n is SHIP:NEXTNODE.
|
||||
local t is BurnTime(n:MAG)/2.
|
||||
|
||||
lock STEERING to n:DELTAV.
|
||||
wait until VectorAngle(SHIP:VELOCITY, STEERINGMANAGER:TARGET) <= 0.1.
|
||||
|
||||
KUNIVERSE:WARP:WarpTo(n:TIME - t - 5).
|
||||
wait until n:ETA <= t.
|
||||
|
||||
lock THROTTLE to 1.0.
|
||||
wait until n:DELTAV:MAG <= 0.1.
|
||||
unlock THROTTLE.
|
||||
unlock STEERING.
|
Loading…
Add table
Add a link
Reference in a new issue