Files
kos-scripts/boot/tv.ks
2025-10-29 15:40:14 -07:00

38 lines
765 B
Plaintext

@lazyglobal off.
wait until ship:unpacked.
rcs off.
runoncepath("0:/lib/common.ks").
runoncepath("0:/lib/stage/thor.ks").
runoncepath("0:/lib/stage/able.ks").
local target_alt is 1_200_000.
local target_ecc is 0.0025.
local hdg is launch_azimuth(89, target_alt).
set steeringmanager:pitchts to 3.
set steeringmanager:yawts to 3.
thor:launch(hdg, target_alt, 5, 300).
stage.
able:yeet(hdg, target_alt).
able:power_down().
wait 1.
set warpmode to "rails".
set warp to 2.
wait until eta:apoapsis < 180.
set warp to 1.
wait until eta:apoapsis < 150.
set warp to 0.
wait 1.
wait until kuniverse:timewarp:issettled.
able:power_up().
able:circularize(target_ecc).
wait 1.
rcs on.
panels on.
lock steering to sun:direction.
wait 1.
wait until steering_locked().
stage.