Added a logger for flight data.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// Inital gravity turn
|
||||
// #include staging
|
||||
run once staging.
|
||||
// #include maneuver
|
||||
run once maneuver.
|
||||
|
||||
function doAscentSteering {
|
||||
@@ -10,6 +12,7 @@ function doAscentSteering {
|
||||
lock steering to tarSteer.
|
||||
until ship:velocity:surface:mag >= 100 {
|
||||
set tarSteer to heading(heading, 90 - (ship:velocity:surface:mag / 10)).
|
||||
if defined UPDATE_LOG { UPDATE_LOG(). }
|
||||
wait 0.
|
||||
}
|
||||
|
||||
@@ -53,13 +56,18 @@ function basicAscent {
|
||||
doAscentSteering(heading).
|
||||
|
||||
// coast to apoapsis
|
||||
wait until ship:apoapsis >= targetAltitude.
|
||||
until ship:apoapsis >= targetAltitude {
|
||||
if defined UPDATE_LOG { UPDATE_LOG(). }
|
||||
}
|
||||
lock steering to ship:prograde.
|
||||
lock throttle to 0.
|
||||
|
||||
// don't do futher calcs until out of the atmosphere or very close to apoapsis
|
||||
wait until ship:altitude >= body:atm:height or eta:apoapsis < 60.
|
||||
until ship:altitude >= body:atm:height or eta:apoapsis < 60 {
|
||||
if defined UPDATE_LOG { UPDATE_LOG(). }
|
||||
}
|
||||
|
||||
executeNode(createCircularizationNode()).
|
||||
|
||||
print "Circularized".
|
||||
}
|
||||
Reference in New Issue
Block a user