SHOW:
|
|
- or go back to the newest paste.
| 1 | - | //run launch_to_orbit |
| 1 | + | when geoposition:lng > 175 then {
|
| 2 | - | lock steering to prograde. |
| 2 | + | |
| 3 | - | print "Enabling solar before fairings". |
| 3 | + | |
| 4 | - | panels on. |
| 4 | + | |
| 5 | - | print "Faring deploy". |
| 5 | + | |
| 6 | - | stage. |
| 6 | + | |
| 7 | - | wait 5. |
| 7 | + | |
| 8 | - | print "Booster separation". |
| 8 | + | |
| 9 | - | stage . |
| 9 | + | |
| 10 | - | wait 1. |
| 10 | + | |
| 11 | - | stage . |
| 11 | + | |
| 12 | - | if ship:partstaggedpattern("booster"):length > 0 {
|
| 12 | + | |
| 13 | - | print "Preparing for deorbit:". |
| 13 | + | |
| 14 | - | print " * point retrograde". |
| 14 | + | |
| 15 | - | print " * move remaining fuel to the other end of the rocket.". |
| 15 | + | |
| 16 | - | lock steering to lookDirUp(retrograde:forevector, sun:position). |
| 16 | + | |
| 17 | - | set steeringmanager:maxstoppingtime to 5. |
| 17 | + | when altitude < 2500 then |
| 18 | - | set transferFuel to transferall("LiquidFuel", ship:partstagged("toptank"), ship:partstagged("bottomtank")). set transferFuel:active to true.
|
| 18 | + | |
| 19 | - | set transferOx to transferall("Oxidizer", ship:partstagged("toptank"), ship:partstagged("bottomtank")). set transferOx:active to true.
|
| 19 | + | |
| 20 | } | |
| 21 | - | when transferFuel:status = "Finished" then {
|
| 21 | + | |
| 22 | - | print "Deorbit prep completed. Warping close to deorbit point.". |
| 22 | + | |
| 23 | - | when geoposition:lng > 140 then set warp to 1. |
| 23 | + | |
| 24 | - | when geoposition:lng > 150 then set warp to 0. |
| 24 | + | when geoposition:lng > -49 and geoposition:lng < -35 then {
|
| 25 | - | set warp to 3. |
| 25 | + | |
| 26 | - | } |
| 26 | + | |
| 27 | when airspeed < 385 then {
| |
| 28 | - | when geoposition:lng > 161.5 then {
|
| 28 | + | |
| 29 | - | print "Deorbit burn". |
| 29 | + | |
| 30 | } | |
| 31 | ||
| 32 | } | |
| 33 | when geoposition:lng > -48 and geoposition:lng < -35 then {
| |
| 34 | print "Over KSC". | |
| 35 | - | print "Deorbit burn completed. Preparing for reentry.". |
| 35 | + | |
| 36 | } | |
| 37 | } | |
| 38 | } | |
| 39 | } |