.. default-domain:: py .. highlight:: py .. currentmodule:: SpaceCenter Communications ============== .. class:: Comms Used to interact with CommNet for a given vessel. Obtained by calling :attr:`Vessel.comms`. .. attribute:: can_communicate Whether the vessel can communicate with KSC. :Attribute: Read-only, cannot be set :rtype: bool :Game Scenes: Flight .. attribute:: can_transmit_science Whether the vessel can transmit science data to KSC. :Attribute: Read-only, cannot be set :rtype: bool :Game Scenes: Flight .. attribute:: signal_strength Signal strength to KSC. :Attribute: Read-only, cannot be set :rtype: float :Game Scenes: Flight .. attribute:: signal_delay Signal delay to KSC in seconds. :Attribute: Read-only, cannot be set :rtype: float :Game Scenes: Flight .. attribute:: power The combined power of all active antennae on the vessel. :Attribute: Read-only, cannot be set :rtype: float :Game Scenes: Flight .. note:: Not used by RealAntennas, which replaces the stock range model. .. attribute:: control_path The communication path used to control the vessel. :Attribute: Read-only, cannot be set :rtype: list(:class:`CommLink`) :Game Scenes: Flight .. class:: CommLink Represents a communication link between two nodes in the network. .. attribute:: type The type of link. :Attribute: Read-only, cannot be set :rtype: :class:`CommLinkType` .. attribute:: signal_strength Signal strength of the link. :Attribute: Read-only, cannot be set :rtype: float .. attribute:: start Start point of the link. :Attribute: Read-only, cannot be set :rtype: :class:`CommNode` .. attribute:: end End point of the link. :Attribute: Read-only, cannot be set :rtype: :class:`CommNode` .. attribute:: forward_data_rate The data rate from :attr:`CommLink.start` to :attr:`CommLink.end`, in bits per second. :Attribute: Read-only, cannot be set :rtype: float .. note:: Requires RealAntennas. .. attribute:: reverse_data_rate The data rate from :attr:`CommLink.end` to :attr:`CommLink.start`, in bits per second. :Attribute: Read-only, cannot be set :rtype: float .. note:: Requires RealAntennas. .. attribute:: start_antenna The antenna at :attr:`CommLink.start` that transmits over the link, or ``None`` if :attr:`CommLink.start` is a ground station or an unloaded vessel. :Attribute: Read-only, cannot be set :rtype: :class:`Antenna` or None .. note:: Requires RealAntennas. .. attribute:: end_antenna The antenna at :attr:`CommLink.end` that receives over the link, or ``None`` if :attr:`CommLink.end` is a ground station or an unloaded vessel. :Attribute: Read-only, cannot be set :rtype: :class:`Antenna` or None .. note:: Requires RealAntennas. .. class:: CommLinkType The type of a communication link. See :attr:`CommLink.type`. .. data:: home Link is to a base station on Kerbin. .. data:: control Link is to a control source, for example a manned spacecraft. .. data:: relay Link is to a relay satellite. .. class:: CommNode(name, is_home, is_control_point, is_vessel, vessel) Represents a communication node in the network. For example, a vessel or the KSC. .. attribute:: name Name of the communication node. :rtype: str .. attribute:: is_home Whether the communication node is on Kerbin. :rtype: bool .. attribute:: is_control_point Whether the communication node is a control point, for example a manned vessel. :rtype: bool .. attribute:: is_vessel Whether the communication node is a vessel. :rtype: bool .. attribute:: vessel The vessel for this communication node, or null if the node is not a vessel. :rtype: :class:`Vessel` or None