.. default-domain:: http .. highlight:: json Antenna ======= .. _http-RemoteTech.Antenna: .. rubric:: Antenna A RemoteTech antenna. Obtained by calling :http:get:`/remote-tech/comms/(id)/antennas` or :http:post:`/remote-tech/antenna`. | Base class: :ref:`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)``. .. http:get:: /remote-tech/antenna/(id)/name Name of the PartModule. For example, "ModuleEngines". Inherited from :ref:`SpaceCenter.Module `. :param id: The identifier of the :ref:`Antenna ` object. :resjson string value: .. http:get:: /remote-tech/antenna/(id)/part The part that contains this module. Inherited from :ref:`SpaceCenter.Module `. :param id: The identifier of the :ref:`Antenna ` object. :resjson SpaceCenter.Part value: .. http: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 :ref:`SpaceCenter.Module `. :param id: The identifier of the :ref:`Antenna ` object. :resjson SpaceCenter.ConfigNode value: .. http: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 :http:get:`/space-center/part-field/(id)/visible` to get just the visible ones. Inherited from :ref:`SpaceCenter.Module `. :param id: The identifier of the :ref:`Antenna ` object. :resjson list value: .. http: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 :http:get:`/space-center/part-event/(id)/visible` and :http:get:`/space-center/part-event/(id)/active` to get just the ones shown in the menu. Inherited from :ref:`SpaceCenter.Module `. :param id: The identifier of the :ref:`Antenna ` object. :resjson list value: .. http: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 :ref:`SpaceCenter.Module `. :param id: The identifier of the :ref:`Antenna ` object. :resjson list value: .. http:get:: /remote-tech/antenna/(id)/has-connection Whether the antenna has a connection. :param id: The identifier of the :ref:`Antenna ` object. :resjson bool value: .. http: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 :http:get:`/remote-tech/antenna/(id)/target-body`, :http:get:`/remote-tech/antenna/(id)/target-ground-station` and :http:get:`/remote-tech/antenna/(id)/target-vessel`. :param id: The identifier of the :ref:`Antenna ` object. :resjson RemoteTech.Target value: .. http: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 :http:get:`/remote-tech/antenna/(id)/target-body`, :http:get:`/remote-tech/antenna/(id)/target-ground-station` and :http:get:`/remote-tech/antenna/(id)/target-vessel`. :param id: The identifier of the :ref:`Antenna ` object. :reqjson RemoteTech.Target value: The new value. .. http:get:: /remote-tech/antenna/(id)/target-body The celestial body the antenna is targetting. :param id: The identifier of the :ref:`Antenna ` object. :resjson SpaceCenter.CelestialBody value: .. http:put:: /remote-tech/antenna/(id)/target-body The celestial body the antenna is targetting. :param id: The identifier of the :ref:`Antenna ` object. :reqjson SpaceCenter.CelestialBody value: The new value. .. http:get:: /remote-tech/antenna/(id)/target-ground-station The ground station the antenna is targetting. :param id: The identifier of the :ref:`Antenna ` object. :resjson string value: .. http:put:: /remote-tech/antenna/(id)/target-ground-station The ground station the antenna is targetting. :param id: The identifier of the :ref:`Antenna ` object. :reqjson string value: The new value. .. http:get:: /remote-tech/antenna/(id)/target-vessel The vessel the antenna is targetting. :param id: The identifier of the :ref:`Antenna ` object. :resjson SpaceCenter.Vessel value: .. http:put:: /remote-tech/antenna/(id)/target-vessel The vessel the antenna is targetting. :param id: The identifier of the :ref:`Antenna ` object. :reqjson SpaceCenter.Vessel value: The new value. .. _http-RemoteTech.Target: .. rubric:: Target The type of object an antenna is targetting. See :http: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.