.. default-domain:: c .. highlight:: c Antenna ======= .. type:: krpc_RemoteTech_Antenna_t A RemoteTech antenna. Obtained by calling :func:`krpc_RemoteTech_Comms_Antennas` or :func:`krpc_RemoteTech_Antenna`. | Base class: :type:`krpc_SpaceCenter_Module_t` .. macro:: KRPC_CLASS_REMOTETECH_ANTENNA The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_RemoteTech_Antenna_Name(krpc_connection_t connection, char * * returnValue, krpc_RemoteTech_Antenna_t instance) Name of the PartModule. For example, "ModuleEngines". Inherited from :func:`krpc_SpaceCenter_Module_Name`. .. function:: krpc_error_t krpc_RemoteTech_Antenna_Part(krpc_connection_t connection, krpc_SpaceCenter_Part_t * returnValue, krpc_RemoteTech_Antenna_t instance) The part that contains this module. Inherited from :func:`krpc_SpaceCenter_Module_Part`. .. function:: krpc_error_t krpc_RemoteTech_Antenna_Config(krpc_connection_t connection, krpc_SpaceCenter_ConfigNode_t * returnValue, krpc_RemoteTech_Antenna_t instance) 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 ``nullptr`` if the module's configuration node cannot be found. Inherited from :func:`krpc_SpaceCenter_Module_Config`. .. function:: krpc_error_t krpc_RemoteTech_Antenna_FieldList(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_RemoteTech_Antenna_t instance) A list of all the fields of the module, including those not visible in the right-click menu of the part. Filter by :func:`krpc_SpaceCenter_PartField_Visible` to get just the visible ones. Inherited from :func:`krpc_SpaceCenter_Module_FieldList`. .. function:: krpc_error_t krpc_RemoteTech_Antenna_EventList(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_RemoteTech_Antenna_t instance) 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 :func:`krpc_SpaceCenter_PartEvent_Visible` and :func:`krpc_SpaceCenter_PartEvent_Active` to get just the ones shown in the menu. Inherited from :func:`krpc_SpaceCenter_Module_EventList`. .. function:: krpc_error_t krpc_RemoteTech_Antenna_ActionList(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_RemoteTech_Antenna_t instance) 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 :func:`krpc_SpaceCenter_Module_ActionList`. .. function:: krpc_error_t krpc_RemoteTech_Antenna_HasConnection(krpc_connection_t connection, bool * returnValue, krpc_RemoteTech_Antenna_t instance) Whether the antenna has a connection. .. function:: krpc_error_t krpc_RemoteTech_Antenna_Target(krpc_connection_t connection, krpc_RemoteTech_Target_t * returnValue, krpc_RemoteTech_Antenna_t instance) .. function:: krpc_error_t krpc_RemoteTech_Antenna_set_Target(krpc_connection_t connection, krpc_RemoteTech_Antenna_t instance, krpc_RemoteTech_Target_t value) The object that the antenna is targetting. This property can be used to set the target to :macro:`KRPC_REMOTETECH_TARGET_NONE` or :macro:`KRPC_REMOTETECH_TARGET_ACTIVEVESSEL`. To set the target to a celestial body, ground station or vessel see :func:`krpc_RemoteTech_Antenna_TargetBody`, :func:`krpc_RemoteTech_Antenna_TargetGroundStation` and :func:`krpc_RemoteTech_Antenna_TargetVessel`. .. function:: krpc_error_t krpc_RemoteTech_Antenna_TargetBody(krpc_connection_t connection, krpc_SpaceCenter_CelestialBody_t * returnValue, krpc_RemoteTech_Antenna_t instance) .. function:: krpc_error_t krpc_RemoteTech_Antenna_set_TargetBody(krpc_connection_t connection, krpc_RemoteTech_Antenna_t instance, krpc_SpaceCenter_CelestialBody_t value) The celestial body the antenna is targetting. .. function:: krpc_error_t krpc_RemoteTech_Antenna_TargetGroundStation(krpc_connection_t connection, char * * returnValue, krpc_RemoteTech_Antenna_t instance) .. function:: krpc_error_t krpc_RemoteTech_Antenna_set_TargetGroundStation(krpc_connection_t connection, krpc_RemoteTech_Antenna_t instance, const char * value) The ground station the antenna is targetting. .. function:: krpc_error_t krpc_RemoteTech_Antenna_TargetVessel(krpc_connection_t connection, krpc_SpaceCenter_Vessel_t * returnValue, krpc_RemoteTech_Antenna_t instance) .. function:: krpc_error_t krpc_RemoteTech_Antenna_set_TargetVessel(krpc_connection_t connection, krpc_RemoteTech_Antenna_t instance, krpc_SpaceCenter_Vessel_t value) The vessel the antenna is targetting. .. type:: krpc_RemoteTech_Target_t The type of object an antenna is targetting. See :func:`krpc_RemoteTech_Antenna_Target`. .. macro:: KRPC_ENUMERATION_REMOTETECH_TARGET The service and enumeration ids of the enumeration, for :func:`krpc_KRPC_Type_EnumerationTypeById` and :func:`krpc_KRPC_Expression_ConstantEnumById`. .. macro:: KRPC_REMOTETECH_TARGET_ACTIVEVESSEL The active vessel. .. macro:: KRPC_REMOTETECH_TARGET_CELESTIALBODY A celestial body. .. macro:: KRPC_REMOTETECH_TARGET_GROUNDSTATION A ground station. .. macro:: KRPC_REMOTETECH_TARGET_VESSEL A specific vessel. .. macro:: KRPC_REMOTETECH_TARGET_NONE No target.