Added a logger for flight data.

This commit is contained in:
2026-05-20 11:52:05 -07:00
parent 6dd14708bc
commit 6822923238
5 changed files with 155 additions and 3 deletions
+10 -2
View File
@@ -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".
}