### bool API.HasFlightComputer(Guid id) Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/api Tests whether a vessel has a flight computer on board. ```APIDOC ## bool API.HasFlightComputer(Guid id) ### Description Tests whether a vessel has a flight computer on board. ### Method Function call ### Parameters - **id** (Guid) - Required - The pid value of the vessel being tested. ### Return Value True if `id` is the id of a known vessel with a flight computer; false otherwise. In particular, returns false if `id` is not a vessel. ### Exception Guarantee Does not throw exceptions. ``` -------------------------------- ### bool API.HasAnyConnection(Guid id) Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/api Tests whether a vessel can receive commands from a ground station or command station. ```APIDOC ## bool API.HasAnyConnection(Guid id) ### Description Tests whether a vessel can receive commands from a ground station or command station. ### Method Function call ### Parameters - **id** (Guid) - Required - The pid value of the vessel being tested. ### Return Value True if `id` is the id of a known vessel with a working connection; false otherwise. In particular, returns false if `id` is not a vessel. ### Exception Guarantee Does not throw exceptions. ``` -------------------------------- ### bool API.HasConnectionToKSC(Guid id) Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/api Tests whether a vessel can transmit science data to a ground station. ```APIDOC ## bool API.HasConnectionToKSC(Guid id) ### Description Tests whether a vessel can transmit science data to a ground station. Despite the name, if the game has multiple ground stations then any of them will qualify. ### Method Function call ### Parameters - **id** (Guid) - Required - The pid value of the vessel being tested. ### Return Value True if `id` is the id of a known vessel with a working connection to a ground station; false otherwise. In particular, returns false if `id` is not a vessel, or if the vessel designated by `id` can connect only to a vessel command station. ### Exception Guarantee Does not throw exceptions. ``` -------------------------------- ### double API.GetSignalDelayToSatellite(Guid a, Guid b) Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/api Measures the signal delay between two arbitrary vessels or ground stations. ```APIDOC ## double API.GetSignalDelayToSatellite(Guid a, Guid b) ### Description Measures the signal delay between two arbitrary vessels or ground stations. ### Method Function call ### Parameters - **a** (Guid) - Required - The pid value of the first vessel or ground station. - **b** (Guid) - Required - The pid value of the second vessel or ground station. ### Return Value The number of seconds of signal delay introduced. ### Exception Guarantee Atomic guarantee: the program state in the event of an exception is unchanged from before the function call. ``` -------------------------------- ### void API.AddSanctionedPilot(Guid id, Action autopilot) Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/api Allows an external function to bypass signal delay and apply control input to a vessel in real time. ```APIDOC ## void API.AddSanctionedPilot(Guid id, Action autopilot) ### Description Allows an external function to bypass signal delay and apply control input to a vessel in real time. ### Method Function call ### Parameters - **id** (Guid) - Required - The pid value of the vessel being controlled. - **autopilot** (Action) - Required - A function that takes a `FlightCtrlState` as an argument and updates it according to a piloting algorithm. ### PostCondition All flight computers on board vessel `id` will allow `autopilot` real-time control of the vessel. `autopilot` will be run _after_ RemoteTech’s flight computer has made its own changes to a vessel’s controls. ### Exception Guarantee Atomic guarantee: the program state in the event of an exception is unchanged from before the function call. ``` -------------------------------- ### double API.GetShortestSignalDelay(Guid id) Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/api Measures the signal delay experienced by a vessel when sending commands. ```APIDOC ## double API.GetShortestSignalDelay(Guid id) ### Description Measures the signal delay experienced by a vessel when sending commands. ### Method Function call ### Parameters - **id** (Guid) - Required - The pid value of the vessel whose signal delay is desired. ### Return Value The number of seconds of signal delay introduced. ### Exception Guarantee Atomic guarantee: the program state in the event of an exception is unchanged from before the function call. ``` -------------------------------- ### double API.GetSignalDelayToKSC(Guid id) Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/api Measures the signal delay experienced by a vessel were commands to be sent from a ground station. ```APIDOC ## double API.GetSignalDelayToKSC(Guid id) ### Description Measures the signal delay experienced by a vessel were commands to be sent from a ground station. Despite the name, if the game has multiple ground stations then any of them will qualify. ### Method Function call ### Parameters - **id** (Guid) - Required - The pid value of the vessel whose signal delay is desired. ### Return Value The number of seconds of signal delay introduced. ### Exception Guarantee Atomic guarantee: the program state in the event of an exception is unchanged from before the function call. ``` -------------------------------- ### Add extra ground stations Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/settings Patch to delete existing GroundStations and add two new stations (Mission Control and KSC Northern Control) with specified GUIDs, coordinates, and antenna ranges. The comment notes that the GroundStation block needs to be deleted first. ```plaintext // The GroundStation block needs to be deleted first before adding more stations @RemoteTechSettings:FOR[ExampleMod] { !GroundStations,* {} GroundStations { STATION { Guid = 5105f5a9-d628-41c6-ad4b-21154e8fc488 Name = Mission Control Latitude = -0.131331503391266 Longitude = -74.594841003418 Height = 100 Body = 1 MarkColor = 1,0,0,1 Antennas { ANTENNA { Omni = 9E+11 } } } STATION { Guid = 74dc7a4e-e22e-35d6-eee6-39be668a23c4 Name = KSC Northern Control Latitude = 19.65 Longitude = -77.4 Height = 3200 Body = 1 MarkColor = 1,0.8,0,0.7 Antennas { ANTENNA { Omni = 1E+06 } } } } } ``` -------------------------------- ### void API.RemoveSanctionedPilot(Guid id, Action autopilot) Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/api Revokes the signal delay bypass granted by `AddSanctionedPilot()`. ```APIDOC ## void API.RemoveSanctionedPilot(Guid id, Action autopilot) ### Description Revokes the signal delay bypass granted by `AddSanctionedPilot()`. ### Method Function call ### Parameters - **id** (Guid) - Required - The pid value of the vessel to control. - **autopilot** (Action) - Required - A function that takes a `FlightCtrlState` as an argument and updates it according to a piloting algorithm. ### PostCondition No flight computer on board vessel `id` will allow `autopilot` real-time control of the vessel. ### Exception Guarantee Atomic guarantee: the program state in the event of an exception is unchanged from before the function call. ``` -------------------------------- ### Precedence order with FOR prefixes Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/settings Three patches showing lexicographic ordering: AsteroidFactory, zSuperRangeAntennas, and zzSolarSystem. The z prefix ensures the SuperRangeAntennas patch is applied between the other two. ```plaintext @RemoteTechSettings:FOR[AsteroidFactory] {...} ``` ```plaintext @RemoteTechSettings:FOR[zSuperRangeAntennas] {...} ``` ```plaintext @RemoteTechSettings:FOR[zzSolarSystem] {...} ``` -------------------------------- ### Edit a setting: Disable signal delay Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/settings Patch to set EnableSignalDelay to False for the ExampleMod. Uses @RemoteTechSettings:FOR[ExampleMod]. ```plaintext @RemoteTechSettings:FOR[ExampleMod] { %EnableSignalDelay = False } ``` -------------------------------- ### Default RemoteTech Settings Configuration Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/settings The full configuration block for RemoteTech settings, including global parameters and the default ground station definition. ```text RemoteTechSettings { RemoteTechEnabled = True CommNetEnabled = False ConsumptionMultiplier = 1 RangeMultiplier = 1 MissionControlRangeMultiplier = 1 ActiveVesselGuid = 35b89a0d664c43c6bec8d0840afc97b2 NoTargetGuid = 00000000-0000-0000-0000-000000000000 SpeedOfLight = 3E+08 MapFilter = Omni, Cone, Path EnableSignalDelay = True RangeModelType = Standard MultipleAntennaMultiplier = 0 ThrottleTimeWarp = True ThrottleZeroOnNoConnection = True HideGroundStationsBehindBody = True ControlAntennaWithoutConnection = False UpgradeableMissionControlAntennas = True HideGroundStationsOnDistance = True ShowMouseOverInfoGroundStations = True AutoInsertKaCAlerts = True FCLeadTime = 180 FCOffAfterExecute = False DistanceToHideGroundStations = 3E+07 DishConnectionColor = 0.996078372,0.701960802,0.0313725509,1 OmniConnectionColor = 0.552941203,0.517647088,0.407843113,1 ActiveConnectionColor = 0.65882349,1,0.0156862792,1 RemoteStationColorDot = 0.996078014,0,0,1 GroundStations { STATION { Guid = 5105f5a9-d628-41c6-ad4b-21154e8fc488 Name = Mission Control Latitude = -0.13133150339126601 Longitude = -74.594841003417997 Height = 75 Body = 1 MarkColor = 0.996078014,0,0,1 Antennas { ANTENNA { Omni = 75000000 Dish = 0 CosAngle = 1 UpgradeableOmni = 4E+06;3.0E+07;7.5E+07 UpgradeableDish = UpgradeableCosAngle = } } } } PreSets { PRESETS = RemoteTech/Default_Settings/RemoteTechSettings } } ``` -------------------------------- ### Edit a setting: Relocate Mission Control to Duna Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/settings Patch to change the Body of the ground station named 'Mission?Control' to 6 (Duna). Uses @RemoteTechSettings:FOR[ExampleMod] and a HAS filter. ```plaintext //Relocate Mission Control to Duna @RemoteTechSettings:FOR[ExampleMod] { @GroundStations { @STATION:HAS[#Name[Mission?Control]] { @Body = 6 } } } ``` -------------------------------- ### Mutually exclusiveness with NEEDS Source: https://remotetechnologiesgroup.github.io/RemoteTech/modders/settings Patch that is not applied if the SupersizeKerbin mod is present. Uses @RemoteTechSettings:NEEDS[!SupersizeKerbin]:FOR[ExampleMod]. ```plaintext @RemoteTechSettings:NEEDS[!SupersizeKerbin]:FOR[ExampleMod] {...} ``` -------------------------------- ### Satellite ORBIT block in persistent.sfs Source: https://remotetechnologiesgroup.github.io/RemoteTech/tutorials/c16network This block represents the orbital parameters of a satellite within the persistent.sfs save file. To synchronize satellites, copy the SMA value from one satellite's ORBIT block to the corresponding blocks of other satellites. ```text ORBIT { SMA = 1376599.67497195 ECC = 0.00389366036050499 INC = 0.233585703096135 LPE = 43.7188835604928 LAN = 344.168722710595 MNA = 5.59207455474008 EPH = 15705.4855810846 REF = 1 } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.