Communications#

type krpc_SpaceCenter_Comms_t#

Used to interact with CommNet for a given vessel. Obtained by calling krpc_SpaceCenter_Vessel_Comms().

KRPC_CLASS_SPACECENTER_COMMS#

The service and class ids of the class, for krpc_KRPC_Type_ClassTypeById().

krpc_error_t krpc_SpaceCenter_Comms_CanCommunicate(krpc_connection_t connection, bool *returnValue, krpc_SpaceCenter_Comms_t instance)#

Whether the vessel can communicate with KSC.

Game Scenes:

Flight

krpc_error_t krpc_SpaceCenter_Comms_CanTransmitScience(krpc_connection_t connection, bool *returnValue, krpc_SpaceCenter_Comms_t instance)#

Whether the vessel can transmit science data to KSC.

Game Scenes:

Flight

krpc_error_t krpc_SpaceCenter_Comms_SignalStrength(krpc_connection_t connection, double *returnValue, krpc_SpaceCenter_Comms_t instance)#

Signal strength to KSC.

Game Scenes:

Flight

krpc_error_t krpc_SpaceCenter_Comms_SignalDelay(krpc_connection_t connection, double *returnValue, krpc_SpaceCenter_Comms_t instance)#

Signal delay to KSC in seconds.

Game Scenes:

Flight

krpc_error_t krpc_SpaceCenter_Comms_Power(krpc_connection_t connection, double *returnValue, krpc_SpaceCenter_Comms_t instance)#

The combined power of all active antennae on the vessel.

Game Scenes:

Flight

Note

Not used by RealAntennas, which replaces the stock range model.

krpc_error_t krpc_SpaceCenter_Comms_ControlPath(krpc_connection_t connection, krpc_list_object_t *returnValue, krpc_SpaceCenter_Comms_t instance)#

The communication path used to control the vessel.

Game Scenes:

Flight

Represents a communication link between two nodes in the network.

The service and class ids of the class, for krpc_KRPC_Type_ClassTypeById().

The type of link.

Signal strength of the link.

Start point of the link.

End point of the link.

The data rate from krpc_SpaceCenter_CommLink_Start() to krpc_SpaceCenter_CommLink_End(), in bits per second.

Note

Requires RealAntennas.

The data rate from krpc_SpaceCenter_CommLink_End() to krpc_SpaceCenter_CommLink_Start(), in bits per second.

Note

Requires RealAntennas.

The antenna at krpc_SpaceCenter_CommLink_Start() that transmits over the link, or nullptr if krpc_SpaceCenter_CommLink_Start() is a ground station or an unloaded vessel.

Note

Requires RealAntennas.

The antenna at krpc_SpaceCenter_CommLink_End() that receives over the link, or nullptr if krpc_SpaceCenter_CommLink_End() is a ground station or an unloaded vessel.

Note

Requires RealAntennas.

type krpc_SpaceCenter_CommLinkType_t#

The type of a communication link. See krpc_SpaceCenter_CommLink_Type().

KRPC_ENUMERATION_SPACECENTER_COMMLINKTYPE#

The service and enumeration ids of the enumeration, for krpc_KRPC_Type_EnumerationTypeById() and krpc_KRPC_Expression_ConstantEnumById().

KRPC_SPACECENTER_COMMLINKTYPE_HOME#

Link is to a base station on Kerbin.

KRPC_SPACECENTER_COMMLINKTYPE_CONTROL#

Link is to a control source, for example a manned spacecraft.

KRPC_SPACECENTER_COMMLINKTYPE_RELAY#

Link is to a relay satellite.

type krpc_SpaceCenter_CommNode_t#

Represents a communication node in the network. For example, a vessel or the KSC.

KRPC_STRUCT_SPACECENTER_COMMNODE#

The service and structure ids of the structure, for krpc_KRPC_Type_StructTypeById().

char *name#

Name of the communication node.

KRPC_FIELD_SPACECENTER_COMMNODE_NAME#

The position of the field, for krpc_KRPC_Expression_GetFieldByIndex().

bool is_home#

Whether the communication node is on Kerbin.

KRPC_FIELD_SPACECENTER_COMMNODE_ISHOME#

The position of the field, for krpc_KRPC_Expression_GetFieldByIndex().

bool is_control_point#

Whether the communication node is a control point, for example a manned vessel.

KRPC_FIELD_SPACECENTER_COMMNODE_ISCONTROLPOINT#

The position of the field, for krpc_KRPC_Expression_GetFieldByIndex().

bool is_vessel#

Whether the communication node is a vessel.

KRPC_FIELD_SPACECENTER_COMMNODE_ISVESSEL#

The position of the field, for krpc_KRPC_Expression_GetFieldByIndex().

krpc_nullable_object_t vessel#

The vessel for this communication node, or null if the node is not a vessel.

KRPC_FIELD_SPACECENTER_COMMNODE_VESSEL#

The position of the field, for krpc_KRPC_Expression_GetFieldByIndex().