From 102786b79b875e136f44941f8d01a396113d37e8 Mon Sep 17 00:00:00 2001 From: annabunches Date: Wed, 4 Aug 2021 23:05:05 -0400 Subject: [PATCH] Pass TWR in to launch function so it actually has an effect. --- lib/launch_rocket.ks | 3 +-- prog/rocket.ks | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/launch_rocket.ks b/lib/launch_rocket.ks index ec9c3cb..87b5b83 100644 --- a/lib/launch_rocket.ks +++ b/lib/launch_rocket.ks @@ -4,13 +4,12 @@ runoncepath("lib/node"). function Launch { parameter APOAPSIS_TARGET is 80000. + parameter ATMO_TWR is 1.6. parameter GRAVITY_TURN_START is 8000. parameter GRAVITY_PITCH is 75. parameter INITIAL_PITCH is 85. parameter MINIMUM_PITCH is 5. - local ATMO_TWR is 1.6. - // Configure subsystems. RCS off. SAS off. diff --git a/prog/rocket.ks b/prog/rocket.ks index 4b8ce10..052050d 100644 --- a/prog/rocket.ks +++ b/prog/rocket.ks @@ -94,8 +94,9 @@ row:AddLabel("Gravity Turn Pitch"). local gravPitch is row:AddTextField("75"). makeButton(top, "Execute", { - Launch( + Launch( targetApo:TEXT:ToNumber(), + targetTWR:TEXT:ToNumber(), gravTurnStart:TEXT:ToNumber(), gravPitch:TEXT:ToNumber(), initialPitch:TEXT:ToNumber(),