38 lines
630 B
Plaintext
38 lines
630 B
Plaintext
@lazyglobal off.
|
|
wait until ship:unpacked.
|
|
|
|
runoncepath("0:/lib/stage/v2.ks").
|
|
runoncepath("0:/lib/common.ks").
|
|
|
|
|
|
local target_azimuth is 90.
|
|
|
|
// 6Mm with A-6
|
|
//local target_pitch is 10.
|
|
// 7.5Mm with A-6H
|
|
local target_pitch is 7.
|
|
|
|
rcs off.
|
|
v2:launch(target_azimuth, target_pitch).
|
|
|
|
// Release upper stage and align.
|
|
rcs on.
|
|
stage.
|
|
local hdg is lookdirup(ship:srfprograde:forevector, ship:up:forevector).
|
|
lock throttle to 1.0.
|
|
lock steering to hdg.
|
|
wait 1.
|
|
|
|
// spin up solids
|
|
wait until steering_locked(0.001).
|
|
unlock steering.
|
|
set ship:control:roll to 1.0.
|
|
wait 20.
|
|
|
|
// Sequence solid motors
|
|
stage.
|
|
wait 8.
|
|
stage.
|
|
wait 8.
|
|
stage.
|