Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LOCK alt TO SHIP:ALTITUDE.
- LOCK vertspd to SHIP:VERTICALSPEED.
- SET level to 100.
- LOCK delta to ABS(level - alt/10).
- LOCK steering TO UP.
- SET thrott to 1.
- SET min to 0.
- SET max to 1.
- LOCK THROTTLE to thrott.
- WAIT 1.
- STAGE.
- UNTIL SHIP:LIQUIDFUEL < 0.001 {
- if (alt+2*vertspd) < (level) {
- SET thrott to thrott + delta.
- if thrott > max {set thrott to max.}
- }else if (alt+2*vertspd) > (level+1){
- SET thrott to thrott - delta.
- if thrott < min {set thrott to min.}
- }
- WAIT 0.01.
- }
- PRINT "Deploying parachutes.".
- STAGE.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement