From e2906564bc3e8833be1c296fb8f8255ba67e1807 Mon Sep 17 00:00:00 2001 From: annabunches Date: Fri, 27 Aug 2021 23:32:43 -0400 Subject: [PATCH] Reuse code in satdeploy. --- prog/satdeploy.ks | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/prog/satdeploy.ks b/prog/satdeploy.ks index 4dd55ef..88c5ece 100644 --- a/prog/satdeploy.ks +++ b/prog/satdeploy.ks @@ -11,6 +11,7 @@ parameter name is "New Satellite". RunOncePath("/lib/navigation"). +RunOncePath("/lib/systems"). stage. @@ -22,14 +23,9 @@ stage. set SHIP:NAME to name. -PANELS on. -for p in SHIP:PARTS { - if p:MODULES:Find("ModuleRTAntenna") > -1 and p:GetModule("ModuleRTAntenna"):ALLEVENTS:Find("Activate") > -1 { - p:GetModule("ModuleRTAntenna"):DoEvent("Activate"). - } -} +SolarPanels(). +Antennas(). -//add CreateCircularizationNode(TIME + 5). add CreateCircularizationNode("PERI"). ExecNode().