Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // execute maneuver node
- lock throttle to 0.
- set nd to nextnode.
- set burntime to nd:deltav:mag/(maxthrust/mass).
- print "Burn time needed: " + round(burntime,2) + " seconds".
- wait until nd:eta < burntime/2+60.
- lock steering to nd.
- print "Setting up before burning...".
- wait until nd:eta < burntime/2.
- print "Burning...".
- if nd:deltav:mag >= 50
- lock throttle to 1.
- wait until nd:deltav:mag < 50.
- if nd:deltav:mag >= 20
- lock throttle to 0.5.
- wait until nd:deltav:mag < 20.
- if nd:deltav:mag >= 10
- lock throttle to 0.2.
- wait until nd:deltav:mag < 10.
- if nd:deltav:mag >= 0.5
- lock throttle to 0.05.
- wait until nd:deltav:mag < 0.5.
- lock throttle to 0.01.
- wait until nd:deltav:mag < 0.2.
- lock throttle to 0.
- print "Maneuvering success.".
- unlock throttle.
- unlock steering.
Advertisement
Add Comment
Please, Sign In to add comment