Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set done to false.
- startup.
- until done {
- ascent.
- }
- when ship:apoapsis < 90000 then { lock throttle to .5. wait until ship:apoapsis > 90000. lock throttle to 0.}
- function ascend {
- LOCK THROTTLE TO 1. STAGE.
- until ship:altitude > 10000 then{
- safetostage.
- when SHIP:APOAPSIS >90000 then 0{LOCK THROTTLE TO 0. set done to true.}
- }
- }
- function safetostage{
- when ship:maxthrustat(0) < 1 then {STAGE.wait.5.}
- }
- function startup {
- set done to false.
- lock steering to heading (90,88).
- rcs on.wait 1.
- lock x to 7.32602*10^(-9)*ship:altitude^2 - 0.00168158*ship:altitude + 94.6117.
- LOCK STEERING TO HEADING(90,x).
- }
- function temp {
- when ship:altitude > 50000 then{
- when ship:apoapsis < 90000 then { lock throttle to .5. wait until ship:apoapsis > 90000. lock throttle to 0.}
- When Eta:apoapsis < 25 then {
- lock throttle to 75000 - ship:periapsis.
- when ship:maxthrustat(0) < 1 then {STAGE.wait.5.}
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement