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(),