2021-08-08 20:23:49 +00:00
|
|
|
// Run this program on a staged multi-satellite deploy mission. (e.g. using a fairing with interstage nodes and stack separators) To use:
|
|
|
|
//
|
|
|
|
// 1. Make sure the next stage will decouple a satellite and activate its engines.
|
2021-08-09 00:47:14 +00:00
|
|
|
// 2. Pull up the PAW for the satellite's probe core and "Control from Here", so KSP stays focused on the satellite after deploy.
|
2021-08-08 20:23:49 +00:00
|
|
|
// 3. Run this program from that satellite's computer.
|
|
|
|
//
|
|
|
|
// This program will decouple the satellite and circularize its orbit. Ideally done on a resonant satellite injection orbit.
|
|
|
|
|
|
|
|
@lazyglobal off.
|
|
|
|
|
|
|
|
parameter name is "New Satellite".
|
|
|
|
|
2021-08-19 02:32:07 +00:00
|
|
|
RunOncePath("/lib/navigation").
|
2021-08-28 03:32:43 +00:00
|
|
|
RunOncePath("/lib/systems").
|
2021-08-08 20:23:49 +00:00
|
|
|
|
|
|
|
stage.
|
2021-08-09 00:47:14 +00:00
|
|
|
|
|
|
|
wait until SHIP:UNPACKED.
|
|
|
|
wait 0.001.
|
|
|
|
|
|
|
|
// KSP does not intelligently figure out staging on the fly here, so stage again
|
|
|
|
stage.
|
|
|
|
|
2021-08-08 20:23:49 +00:00
|
|
|
set SHIP:NAME to name.
|
|
|
|
|
2021-08-28 03:32:43 +00:00
|
|
|
SolarPanels().
|
|
|
|
Antennas().
|
2021-08-09 00:47:14 +00:00
|
|
|
|
|
|
|
add CreateCircularizationNode("PERI").
|
|
|
|
ExecNode().
|
|
|
|
|