Antenna#

Antenna

A RemoteTech antenna. Obtained by calling GET /remote-tech/comms/(id)/antennas or POST /remote-tech/antenna.

Base class: SpaceCenter.Module

A Antenna object is returned as {"id": ..., "class": ...}, its identifier and the name of its own class. An argument is that object or the identifier alone. A path that acts on an object takes the identifier as (id).

GET /remote-tech/antenna/(id)/name#

Name of the PartModule. For example, “ModuleEngines”.

Inherited from SpaceCenter.Module.

Parameters:
  • id – The identifier of the Antenna object.

Response JSON Object:
  • value (string)

GET /remote-tech/antenna/(id)/part#

The part that contains this module.

Inherited from SpaceCenter.Module.

Parameters:
  • id – The identifier of the Antenna object.

Response JSON Object:
  • value (SpaceCenter.Part)

GET /remote-tech/antenna/(id)/config#

The static configuration of the module, as found in the part’s cfg file. This provides access to data that is not exposed as a field, such as the resources produced by a generator. Returns null if the module’s configuration node cannot be found.

Inherited from SpaceCenter.Module.

Parameters:
  • id – The identifier of the Antenna object.

Response JSON Object:
  • value (SpaceCenter.ConfigNode)

GET /remote-tech/antenna/(id)/field-list#

A list of all the fields of the module, including those not visible in the right-click menu of the part. Filter by GET /space-center/part-field/(id)/visible to get just the visible ones.

Inherited from SpaceCenter.Module.

Parameters:
  • id – The identifier of the Antenna object.

Response JSON Object:
  • value (list<SpaceCenter.PartField>)

GET /remote-tech/antenna/(id)/event-list#

A list of all the events of the module, including those not currently visible or active. Events are the clickable buttons visible in the right-click menu of the part. Filter by GET /space-center/part-event/(id)/visible and GET /space-center/part-event/(id)/active to get just the ones shown in the menu.

Inherited from SpaceCenter.Module.

Parameters:
  • id – The identifier of the Antenna object.

Response JSON Object:
  • value (list<SpaceCenter.PartEvent>)

GET /remote-tech/antenna/(id)/action-list#

A list of all the actions of the module. These are the parts actions that can be assigned to action groups in the in-game editor.

Inherited from SpaceCenter.Module.

Parameters:
  • id – The identifier of the Antenna object.

Response JSON Object:
  • value (list<SpaceCenter.PartAction>)

GET /remote-tech/antenna/(id)/has-connection#

Whether the antenna has a connection.

Parameters:
  • id – The identifier of the Antenna object.

Response JSON Object:
  • value (bool)

GET /remote-tech/antenna/(id)/target#

The object that the antenna is targetting. This property can be used to set the target to "none" or "active_vessel". To set the target to a celestial body, ground station or vessel see GET /remote-tech/antenna/(id)/target-body, GET /remote-tech/antenna/(id)/target-ground-station and GET /remote-tech/antenna/(id)/target-vessel.

Parameters:
  • id – The identifier of the Antenna object.

Response JSON Object:
  • value (RemoteTech.Target)

PUT /remote-tech/antenna/(id)/target#

The object that the antenna is targetting. This property can be used to set the target to "none" or "active_vessel". To set the target to a celestial body, ground station or vessel see GET /remote-tech/antenna/(id)/target-body, GET /remote-tech/antenna/(id)/target-ground-station and GET /remote-tech/antenna/(id)/target-vessel.

Parameters:
  • id – The identifier of the Antenna object.

Request JSON Object:
  • value (RemoteTech.Target) – The new value.

GET /remote-tech/antenna/(id)/target-body#

The celestial body the antenna is targetting.

Parameters:
  • id – The identifier of the Antenna object.

Response JSON Object:
  • value (SpaceCenter.CelestialBody)

PUT /remote-tech/antenna/(id)/target-body#

The celestial body the antenna is targetting.

Parameters:
  • id – The identifier of the Antenna object.

Request JSON Object:
  • value (SpaceCenter.CelestialBody) – The new value.

GET /remote-tech/antenna/(id)/target-ground-station#

The ground station the antenna is targetting.

Parameters:
  • id – The identifier of the Antenna object.

Response JSON Object:
  • value (string)

PUT /remote-tech/antenna/(id)/target-ground-station#

The ground station the antenna is targetting.

Parameters:
  • id – The identifier of the Antenna object.

Request JSON Object:
  • value (string) – The new value.

GET /remote-tech/antenna/(id)/target-vessel#

The vessel the antenna is targetting.

Parameters:
  • id – The identifier of the Antenna object.

Response JSON Object:
  • value (SpaceCenter.Vessel)

PUT /remote-tech/antenna/(id)/target-vessel#

The vessel the antenna is targetting.

Parameters:
  • id – The identifier of the Antenna object.

Request JSON Object:
  • value (SpaceCenter.Vessel) – The new value.

Target

The type of object an antenna is targetting. See GET /remote-tech/antenna/(id)/target.

Passed and returned as the name of one of its values:

"active_vessel"

The active vessel.

"celestial_body"

A celestial body.

"ground_station"

A ground station.

"vessel"

A specific vessel.

"none"

No target.