Communications#

class SpaceCenter.Comms()#

Used to interact with CommNet for a given vessel. Obtained by calling SpaceCenter.Vessel.getComms().

Comms.getCanCommunicate()#

Whether the vessel can communicate with KSC.

Property:

Read-only, cannot be set

Return type:

boolean

Game Scenes:

Flight

Comms.getCanTransmitScience()#

Whether the vessel can transmit science data to KSC.

Property:

Read-only, cannot be set

Return type:

boolean

Game Scenes:

Flight

Comms.getSignalStrength()#

Signal strength to KSC.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

Comms.getSignalDelay()#

Signal delay to KSC in seconds.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

Comms.getPower()#

The combined power of all active antennae on the vessel.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

Note

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

Comms.getControlPath()#

The communication path used to control the vessel.

Property:

Read-only, cannot be set

Return type:

Array of SpaceCenter.CommLink

Game Scenes:

Flight

Represents a communication link between two nodes in the network.

CommLink.getType()#

The type of link.

Property:

Read-only, cannot be set

Return type:

SpaceCenter.CommLinkType

CommLink.getSignalStrength()#

Signal strength of the link.

Property:

Read-only, cannot be set

Return type:

number

CommLink.getStart()#

Start point of the link.

Property:

Read-only, cannot be set

Return type:

SpaceCenter.CommNode

CommLink.getEnd()#

End point of the link.

Property:

Read-only, cannot be set

Return type:

SpaceCenter.CommNode

CommLink.getForwardDataRate()#

The data rate from SpaceCenter.CommLink.getStart() to SpaceCenter.CommLink.getEnd(), in bits per second.

Property:

Read-only, cannot be set

Return type:

number

Note

Requires RealAntennas.

CommLink.getReverseDataRate()#

The data rate from SpaceCenter.CommLink.getEnd() to SpaceCenter.CommLink.getStart(), in bits per second.

Property:

Read-only, cannot be set

Return type:

number

Note

Requires RealAntennas.

CommLink.getStartAntenna()#

The antenna at SpaceCenter.CommLink.getStart() that transmits over the link, or null if SpaceCenter.CommLink.getStart() is a ground station or an unloaded vessel.

Property:

Read-only, cannot be set

Return type:

SpaceCenter.Antenna or null

Note

Requires RealAntennas.

CommLink.getEndAntenna()#

The antenna at SpaceCenter.CommLink.getEnd() that receives over the link, or null if SpaceCenter.CommLink.getEnd() is a ground station or an unloaded vessel.

Property:

Read-only, cannot be set

Return type:

SpaceCenter.Antenna or null

Note

Requires RealAntennas.

class SpaceCenter.CommLinkType()#

The type of a communication link. See SpaceCenter.CommLink.getType().

CommLinkType.home#

Link is to a base station on Kerbin.

CommLinkType.control#

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

CommLinkType.relay#

Link is to a relay satellite.

class SpaceCenter.CommNode(fields)#

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

CommNode.name#

Name of the communication node.

Type:

string

CommNode.isHome#

Whether the communication node is on Kerbin.

Type:

boolean

CommNode.isControlPoint#

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

Type:

boolean

CommNode.isVessel#

Whether the communication node is a vessel.

Type:

boolean

CommNode.vessel#

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

Type:

SpaceCenter.Vessel or null