Class in Zendir.Classes | Inherits from Antenna

Declaration

class Transmitter;

Description

The Transmitter is a communication component responsible for encoding, queuing, and transmitting data packets over telemetry links. It extends the base Antenna class and provides the interface between higher-level data sources and the physical communication layer managed by the Telemetry System. The transmitter models realistic packet-based communication including bit rate constraints, packet corruption, and transmission timing. Data can be transmitted as raw bytes, strings, JSON objects, or structured messages, all of which are serialized into discrete packets and queued for transmission at the configured data rate.


Properties

DeclaredDescription
CanTransmitA flag that can be overwritten by a power module preventingthe transmission from occurring.
ForceTransmitA flag that when enabled will force a transmission of a message
IsTransmittingA flag for if the transmitter is attempting to transmit data
LineLossLine Loss from transmitter to antenna of the transmission. This isa loss in decibels that represents the loss in the transmission linedue to the circuitry and hardware.
ModulationTypeThe modulation scheme used by this transmitter for digital communications.This affects the bit error rate calculation.
NextUplinkTimeThe time when the next message can be uplinked
NumOutPacketsThe number of out messages in the telemetry buffer
NumPacketsLoadedThe number of in messages in the transmitter buffer
PacketSizeThe number of bytes in each packet that is fixed within the packetlist for the data.
PowerPower of the transmission
SystemNoiseTemperatureSystem Noise Temperature of the transmitter, which is used to calculatethe overall noise figure of the transmission.
TransmittedDataA counter for the number of megabits transmitted over the network. This is thesum of the data in the outgoing buffer over time.
UplinkedMessageA flag that specified if a message was uplinked
InheritedDescription
AntennaGainAntenna Gain of the transmission. This is measured in decibels andrepresents the gain provided by the antenna.
BehavioursA collection of behaviours attached to this object.
BitRateThe effective bit rate of the data being processed. This is the maximumamount of data that can be transmitted per second or received per second.The actual bit rate may be limited by the channel capacity.
CenterOfMassB_BThe center of mass of the component in respect to the body frame (B) of the component. This is isolated from anychildren and exists in isolation.
CenterOfMassDot_LB_BThe center of mass time-derivative of the component within its own local coordinates. This does not include anyof the sub-components and exists in isolation.
CenterOfMassDotB_BThe center of mass time-derivative of the component relative to the body frame (B). This does not include any ofthe sub-components and exists in isolation.
CenterOfMassL_LThe center of mass of the component within its own local coordinates. This does not include any of thesub-components and exists in isolation.
CenterOfMassPrime_LB_BThe center of mass general-derivative of the component within its own local coordinates. This does not includeany of the sub-components and exists in isolation.
CenterOfMassPrimeB_B[m/s] The center of mass general-derivative of the component relative to the body frame (B). This does notinclude any of the sub-components and exists in isolation.
ChildrenA collection of children attached to this object.
DCM_BNThe rotational DCM matrix between the body frame (B) at the top of this component chain and the inertial frame (N).
DCM_LBThe rotational DCM matrix between the component frame of this object (L) relative to the body frame (B).
DCM_LNThe DCM rotational matrix of the component relative to the inertial origin (N) of the world.
DCM_LPThe DCM matrix of the component in the parent’s frame (P), taken from the Component Transform (PL).
DivergenceAngleDivergence angle of the antenna
FrequencyThe targeted frequency for the antenna
IsEnabledIs true if the object is currently enabled.
LocalForwardThe direction of the transform frame’s forward vector, which is along the Y axis.
LocalRightThe direction of the transform frame’s right vector, which is along the X axis.
LocalUpThe direction of the transform frame’s up vector, which is along the Z axis.
MassThe component mass defined in the object. This is independent of any parent or children objects and exists inisolation.
MassDotThe component mass time-derivative defined in the object. This is independent of any parent or children objectsand exists in isolation.
ModelsA collection of models attached to this object.
ModelTypeAnalysis type for the antenna dish
MomentOfInertia_LBThe moment of inertia of the component, measured at the local center of mass, represented with its own localcoordinates. This does not include any of the sub-components and exists in isolation.
MomentOfInertiaB_BThe moment of inertia of this component, measured in the body frame relative to the parented body. This isindependent of any children and exists in isolation.
MomentOfInertiaPrime_LBThe derivative of the moment of inertia of the component, measured at the local center of mass, represented withits own local coordinates. This does not include any of the sub-components and exists in isolation.
MomentOfInertiaPrimeB_BThe derivative of the moment of inertia of the component, represented in the body frame (B). This is independentand exists in isolation.
NameThe display name or tag of this object.
NumAvailableConnectionsReturns the number of active connections that are currently valid on the antennathat have a connection fraction greater than zero, so they can be used fordata transmission.
NumConnectionsReturns the number of connections that are currently valid on the antenna
NumLinksReturns the number of valid links that the antenna have connected
OpticalLossOptical Loss of the transmission. This is measured in decibels andrepresents the loss due to optical components.
Out_AntennaConfigMsgThe antenna configuration message that contains the dataabout the antenna.
Out_ComponentMassMsgThe component mass message defines the set of mass properties and states of the system within this componentlocally. This is independent of any parent or children properties or objects.
Out_TransformMsgThis defines the base transform message that stores the state of the transform of this object.
ParentThe currently attached parent object (if any).
PointingLossPointing loss of the transmission due to misalignment. This ismeasured in decibels.
Position[m] The position of the object relative to the parent or to world origin, if no parent exists.
Position_BN_NThe position of the body (the root parent B) in the inertial frame relative to the inertial point (N).
Position_LB_BThe position of the component relative to the root object of this hierarchy. This is in the inertial frame and ifthe component is the root object, then there will be no position.
Position_LN_NThe position of the inertial world space. This position is derived from the world’s transform (N).
Position_LP_PThe position of the object relative to the parented object (P). If there is no parent object, then this will bein the inertial frame.
RootThe root object in the parent chain.
Rotation[-] The rotation of the object relative to the parent or to the world origin, if no parent exists.
Thermal[TEMPORARY] A reference to the thermal model that is attached to this object. This will allow the object to havethermal properties and be able to be used in thermal simulations.
TransmissionTypeThe transmission type for the antenna. This will define whattype of connection is required.

Methods

DeclaredDescription
GetFrequencyBandsInRangeReturns the number of frequency bands that this transmitter cantransmit on at the target frequency. This can be overridden by childclasses for returning multiple bands if required.
GetNearestFrequencyGets the nearest frequency that this transmitter can transmit onto the target frequency specified. This can be overridden by childclasses to provide specific frequency hopping or band selection.
GetNumBandsReturns the number of frequency bands that this transmitter cantransmit on. This can be overridden by child classes for returningmultiple jamming bands.
TransmitBytesAttempts to transmit a byte array across the network. The data will be convertedto packets in the correct order and transmitted over the network. The key is usedto have an identification of the data, which can provide additional context aboutthe information that is sent, but can be completely optional.
TransmitJSONAttempts to transmit a JSON object across the network. The data will be convertedto packets in the correct order and transmitted over the network. The key is usedto have an identification of the data, which can provide additional context aboutthe information that is sent, but can be completely optional.
TransmitMessageAttempts to transmit a message across the network. The data will be convertedto packets in the correct order and transmitted over the network. The key is usedto have an identification of the data, which can provide additional context aboutthe information that is sent, but can be completely optional. By default, if nokey is present, the key will be the name of the message type.
TransmitStringAttempts to transmit a string across the network. The data will be convertedto packets in the correct order and transmitted over the network. The key is usedto have an identification of the data, which can provide additional context aboutthe information that is sent, but can be completely optional.
TransmitTimedMessageAttempts to transmit a message across the network. The data will be convertedto packets in the correct order and transmitted over the network. The key is usedto have an identification of the data, which can provide additional context aboutthe information that is sent, but can be completely optional. By default, if nokey is present, the key will be the name of the message type. This contains anadditional option for a custom time to transmit the message, if it was sent fromanother source.
InheritedDescription
AddObjectReturns a new simulation object with the specified type.
AttachAttempts to attach this object to a new parent. This will only work if the current object is no parented to anyother object.
ConfigureEMLookupTableLoads the EM signature properties from a CSV table. This will read a CSV fileand will interpolate the data to create a lookup table for the EM signature.
ContainsModelWithIDReturns true if an attached model satisfies the specified ID.
ContainsModelWithTypeReturns true if an attached model satisfies the specified type.
DetachThis is an action to detach the current object from its parent, if it exists and move it to another object or tojust exist within the simulation.
FindBehavioursWithTypeReturns all attached behaviours that satisfies the specified type.
FindBehaviourWithIDReturns an attached behaviour that satisfies the specified ID.
FindBehaviourWithTypeReturns an attached behaviour that satisfies the specified type.
FindChildrenWithTypeReturns all attached children that satisfies the specified type.
FindChildWithIDReturns an attached child that satisfies the specified ID.
FindChildWithTypeReturns an attached child that satisfies the specified type.
FindModelsWithTypeReturns all attached models that satisfies the specified type.
FindModelWithIDReturns an attached model that satisfies the specified ID.
FindModelWithTypeReturns an attached model that satisfies the specified type.
FindParentWithIDReturns an attached parent that satisfies the specified ID.
FindParentWithTypeReturns an attached parent that satisfies the specified type.
FindRootWithIDReturns a root object that satisfies the specified ID.
FindRootWithTypeReturns a root object that satisfies the specified type.
GetAntennaLinkReturns the data link message associated with the antenna with a connectionto another antenna.
GetAntennaPositionForLinkGets the position of this antenna for a link to another antenna. Bydefault, this is just the position of the antenna, but can be overriddenin derived classes to provide more complex behavior (e.g., ground stations)for nearest point calculations.
GetLoadedSignaturePatternGets the currently loaded RF pattern and returns the datain degrees as an array from 0 to 360.
GetLookupPointingLossGets the pointing loss of the antenna based on the angle ofthe component.
GetModelReturns a valid assigned model with the specified type.
GetWorldForward[DEPRECATED] THIS FUNCTION WILL BE REMOVED AND SHOULD NOT BE USED.
GetWorldRight[DEPRECATED] THIS FUNCTION WILL BE REMOVED AND SHOULD NOT BE USED.
GetWorldTransformReturns the world transform of the object which is relative to the parent. If no parent exists, this will be thetransform of the object in world space.
GetWorldUp[DEPRECATED] THIS FUNCTION WILL BE REMOVED AND SHOULD NOT BE USED.
ReadBodyTransformThis method will reset the dirty flag on the mass so that it has been read successfully and is valid.
SetRandomSeedSets the random seed for the internal random number generator.
SetWorldTransform[DEPRECATED] THIS FUNCTION WILL BE REMOVED AND SHOULD NOT BE USED.
UpdateMassPropertiesUpdates the mass properties of the current physical object at a particular time.
UpdatePointingLossUpdates the pointing loss of the antenna based on the angle ofthe component.