Reuse code in satdeploy.

This commit is contained in:
Anna Rose 2021-08-27 23:32:43 -04:00
parent f9246c6246
commit e2906564bc

View File

@ -11,6 +11,7 @@
parameter name is "New Satellite". parameter name is "New Satellite".
RunOncePath("/lib/navigation"). RunOncePath("/lib/navigation").
RunOncePath("/lib/systems").
stage. stage.
@ -22,14 +23,9 @@ stage.
set SHIP:NAME to name. set SHIP:NAME to name.
PANELS on. SolarPanels().
for p in SHIP:PARTS { Antennas().
if p:MODULES:Find("ModuleRTAntenna") > -1 and p:GetModule("ModuleRTAntenna"):ALLEVENTS:Find("Activate") > -1 {
p:GetModule("ModuleRTAntenna"):DoEvent("Activate").
}
}
//add CreateCircularizationNode(TIME + 5).
add CreateCircularizationNode("PERI"). add CreateCircularizationNode("PERI").
ExecNode(). ExecNode().