Communications#
-
class Comms#
Used to interact with CommNet for a given vessel. Obtained by calling
Vessel::comms().-
bool can_communicate()#
Whether the vessel can communicate with KSC.
- Game Scenes:
Flight
-
bool can_transmit_science()#
Whether the vessel can transmit science data to KSC.
- Game Scenes:
Flight
-
double signal_strength()#
Signal strength to KSC.
- Game Scenes:
Flight
-
double signal_delay()#
Signal delay to KSC in seconds.
- Game Scenes:
Flight
-
double power()#
The combined power of all active antennae on the vessel.
- Game Scenes:
Flight
Note
Not used by RealAntennas, which replaces the stock range model.
-
bool can_communicate()#
-
class CommLink#
Represents a communication link between two nodes in the network.
-
CommLinkType type()#
The type of link.
-
double signal_strength()#
Signal strength of the link.
-
double forward_data_rate()#
The data rate from
CommLink::start()toCommLink::end(), in bits per second.Note
Requires RealAntennas.
-
double reverse_data_rate()#
The data rate from
CommLink::end()toCommLink::start(), in bits per second.Note
Requires RealAntennas.
-
std::optional<Antenna> start_antenna()#
The antenna at
CommLink::start()that transmits over the link, orNULLifCommLink::start()is a ground station or an unloaded vessel.Note
Requires RealAntennas.
-
std::optional<Antenna> end_antenna()#
The antenna at
CommLink::end()that receives over the link, orNULLifCommLink::end()is a ground station or an unloaded vessel.Note
Requires RealAntennas.
-
CommLinkType type()#
-
enum struct CommLinkType#
The type of a communication link. See
CommLink::type().-
enumerator home#
Link is to a base station on Kerbin.
-
enumerator control#
Link is to a control source, for example a manned spacecraft.
-
enumerator relay#
Link is to a relay satellite.
-
enumerator home#
-
struct CommNode#
Represents a communication node in the network. For example, a vessel or the KSC.
-
std::string name#
Name of the communication node.
-
bool is_home#
Whether the communication node is on Kerbin.
-
bool is_control_point#
Whether the communication node is a control point, for example a manned vessel.
-
bool is_vessel#
Whether the communication node is a vessel.
-
std::string name#