Initial import
This commit is contained in:
42
boot/orbiter.ks
Normal file
42
boot/orbiter.ks
Normal file
@@ -0,0 +1,42 @@
|
||||
@lazyglobal off.
|
||||
wait until ship:unpacked.
|
||||
|
||||
runoncepath("0:/lib/stage/v2.ks").
|
||||
runoncepath("0:/lib/common.ks").
|
||||
|
||||
// First polar and first solar
|
||||
//local target_azimuth is 355.
|
||||
//local target_pitch is 5.
|
||||
|
||||
// First orbit and first scientific
|
||||
local target_azimuth is 90.
|
||||
local target_pitch is 6.5.
|
||||
//local target_pitch is 2.0.
|
||||
|
||||
// First atmospheric analysis
|
||||
// local target_azimuth is 60.
|
||||
// local target_pitch is 5.
|
||||
|
||||
rcs off.
|
||||
v2:launch(target_azimuth, target_pitch).
|
||||
|
||||
wait until eta:apoapsis < 30.
|
||||
|
||||
// Release upper stage and track prograde.
|
||||
rcs on.
|
||||
stage.
|
||||
lock steering to prograde.
|
||||
wait 1.
|
||||
|
||||
// Stabilize
|
||||
wait until eta:apoapsis < 10.
|
||||
local hdg is ship:prograde.
|
||||
lock steering to hdg.
|
||||
wait until steering_locked(0.001).
|
||||
|
||||
// Sequence solid motors
|
||||
stage.
|
||||
wait 8.
|
||||
stage.
|
||||
wait 8.
|
||||
stage.
|
||||
Reference in New Issue
Block a user