Class TelemetrySystem
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] The telemetry system handles the interactions between transmitters and receivers by creating the link blocks between each of the antenna nodes. This ensures that the appropriate links are created and altered if the bandwidths or frequency ranges change.
public class TelemetrySystem : UniverseSystem
- Inheritance
-
TelemetrySystem
Constructors
TelemetrySystem()
Default constructor
protected TelemetrySystem()
Fields
Antennae
The list of all antennae that have been added and registered into this system.
[Hidden]
public List<Antenna> Antennae
Field Value
LinkBlocks
A list of all link blocks for handling the updates
[Hidden]
public List<LinkBlock> LinkBlocks
Field Value
Properties
NumConnections
The number of connections that have been created in the simulation so far
[Unit(UnitType.NONE)]
[ReadOnly]
public int NumConnections { get; }
Property Value
Methods
GetConnectionFactor(double, double, double)
Takes in the frequencies for two devices and determines a normalized factor between 0 and 1 that can be multiplied to the power or baud rate of a connection between two devices. This ensures that a connection between two devices is normalized with a standard distribution with 2sigma.
public static double GetConnectionFactor(double receiverFrequency, double receiverBandwidth, double transmitterFrequency)
Parameters
receiverFrequency
double[Hz] The frequency of the receiver
receiverBandwidth
double[Hz] The bandwidth of the receiver
transmitterFrequency
double[Hz] The frequency of the transmitter
Returns
- double
The normalized value between 0 and 1
GetLinkBlock(int)
Returns a link block at a particular index. This is based on the link block that have been added.
public LinkBlock? GetLinkBlock(int index)
Parameters
index
intThe index to fetch
Returns
- LinkBlock
The link block, if it exists
GetLinkMessage(Receiver, Transmitter)
Returns the data link message associated between a receiver and transmitter, provided they were connected.
public DataLinkMessage? GetLinkMessage(Receiver receiver, Transmitter transmitter)
Parameters
receiver
ReceiverThe receiver to check
transmitter
TransmitterThe transmitter to check
Returns
- DataLinkMessage
The data link message returned, if it exists
GetReceiverLinkMessages(Receiver)
Returns an array of all data link messages that exist on the receiver for any connected transmitters.
public DataLinkMessage[] GetReceiverLinkMessages(Receiver receiver)
Parameters
receiver
ReceiverThe receiver to check
Returns
- DataLinkMessage[]
The array of data link messages to check
GetReceivers()
Returns a array of all receivers that have already been added to the data subsystem, so that the receivers can be connected up appropriately.
public Receiver[] GetReceivers()
Returns
- Receiver[]
The array of receivers
GetReceiversOfType(TransmissionType)
Returns a array of all receivers that have already been added to the data subsystem, so that the receivers can be connected up appropriately. This will also match the transmission type.
public Receiver[] GetReceiversOfType(TransmissionType type)
Parameters
type
TransmissionTypeThe transmission type to search for
Returns
- Receiver[]
The array of receivers
GetTransmitters()
Returns an array of all transmitters that have already been added to the data subsystem, so that the receivers can be connected up appropriately.
public Transmitter[] GetTransmitters()
Returns
- Transmitter[]
The array of transmitters
GetTransmittersOfType(TransmissionType)
Returns an array of all transmitters that have already been added to the data subsystem, so that the receivers can be connected up appropriately. This will also match the transmission type.
public Transmitter[] GetTransmittersOfType(TransmissionType type)
Parameters
type
TransmissionTypeThe transmission type to search for
Returns
- Transmitter[]
The array of transmitters