You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PARAMETER active IS -1. // -1: Toggle all. 0/False: Deactivate all. 1/True: Activate all.
SET active TO IIF(IsFalse(active), 0, IIF(IsTrue(active), 1, active)).
FOR module IN ship:modulesNamed("ModuleRTAntenna") {
IF active<>0 AND module:HasEvent("Activate") {
module:doEvent("Activate").
} ELSE IF active<>1 AND module:HasEvent("Deactivate") {
module:doEvent("Deactivate").
}
}
}
// Given a circular orbit, an antenna range and a set number of satellites, returns the maximum radius of the orbit such that each satellite can reach the next satellite in the sequence.
// Or: Given a regular "numsats"-sided polygon with side "antennarange", return the circumradius.