Class in Zendir.Classes | Inherits from Receiver

Declaration

class OpticalReceiver;

Description

An optical receiver is able to have a line of sight that is affected by the laser link that is set. The optical receiver is a form of a laser receiver that is able to receive data from a laser transmitter.


Properties

DeclaredDescription
CollectorRotationThe rotation of the collector in the local coordinate system. Thisis the initial rotation based on the local coordinate system ofthe collector.
In_DeviceStatusMsgThe Device status message for the physical component whetherthe device is available.
InheritedDescription
AntennaGainAntenna Gain of the transmission
BandwidthThe bandwidth of the targeted frequency
BehavioursA collection of behaviours attached to this object.
BitRateThe bit rate of the data being processed. This is either theamount of data that can be transmitted per second or received persecond.
BufferSizeThe size of the buffer of data that can be stored before thedata is deleted. When the buffer is exceeded, the oldest data isremoved, packet by packet.
CenterOfMassB_BThe center of mass of the component in respect to the bodyframe (B) of the component. This is isolated from any childrenand exists in isolation.
CenterOfMassDot_LB_BThe center of mass time-derivative of the component within itsown local coordinates. This does not include any of the sub-componentsand exists in isolation.
CenterOfMassDotB_BThe center of mass time-derivative of the component relative tothe body frame (B). This does not include any of the sub-componentsand exists in isolation.
CenterOfMassL_LThe center of mass of the component within its own localcoordinates. This does not include any of the sub-components andexists in isolation.
CenterOfMassPrime_LB_BThe center of mass general-derivative of the component within itsown local coordinates. This does not include any of the sub-componentsand exists in isolation.
CenterOfMassPrimeB_B[m/s] The center of mass general-derivative of the component relativeto the body frame (B). This does not include any of the sub-componentsand exists in isolation.
ChildrenA collection of children attached to this object.
DCM_BNThe rotational DCM matrix between the body frame (B) at the topof this component chain and the inertial frame (N).
DCM_LBThe rotational DCM matrix between the component frame of thisobject (L) relative to the body frame (B).
DCM_LNThe DCM rotational matrix of the component relative to theinertial origin (N) of the world.
DCM_LPThe DCM matrix of the component in the parent’s frame (P), takenfrom the Component Transform (PL).
DeleteCorruptedPacketsA flag whether to delete packets that are corrupted. If true, allpackets that are corrupted will be deleted. If false, the packetswill be available in the output buffer.
DiameterDiameter of the receiver dish
DivergenceAngleDivergence angle of the antenna
EnableDopplerShiftA flag whether to enable the Doppler shift or not. If true, the Dopplershift will be calculated and applied to the data.
FrequencyThe targeted frequency for the antenna
InterferenceFractionThe fraction of packets that were interfered with
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 independentof any parent or children objects and exists in isolation.
MassDotThe component mass time-derivative defined in the object. Thisis independent of any parent or children objects and 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 thelocal center of mass, represented with its own local coordinates.This does not include any of the sub-components and exists inisolation.
MomentOfInertiaB_BThe moment of inertia of this component, measured inthe body frame relative to the parented body. This is independentof 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 with its own localcoordinates. This does not include any of the sub-components andexists in isolation.
MomentOfInertiaPrimeB_BThe derivative of the moment of inertia of the component,represented in the body frame (B). This is independent and exists inisolation.
NameThe display name or tag of this object.
NumConnectionsReturns the number of connections that are currently valid on the antenna
NumDataReadyThe number of chunks of data that are ready to be received and handledby the user.
NumLinksReturns the number of valid links that the antenna have connected
NumProcessingPacketsThe number of packets that are being processed. The processing timedepends on the bitrate of the receiver.
OpticalLossOptical Loss of the transmission
Out_AntennaConfigMsgThe antenna configuration message that contains the dataabout the antenna.
Out_ComponentMassMsgThe component mass message defines the set of mass properties andstates of the system within this component locally. This is independentof 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
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 theinertial frame relative to the inertial point (N).
Position_LB_BThe position of the component relative to the rootobject of this hierarchy. This is in the inertial frameand if the component is the root object, then there willbe no position.
Position_LN_NThe position of the inertial world space. This position isderived 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 be in the inertialframe.
PowerPower of the transmission
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.
SignalToNoiseCurrent Signal to noise ratio of active link
ThermalA reference to the thermal model that is attached to this object.This will allow the object to have thermal properties and be ableto be used in thermal simulations.
ThresholdSignalToNoiseCuts off the signal to noise ratio if it is below a value
TransmissionTypeThe transmission type for the antenna. This will define whattype of connection is required.

Methods

DeclaredDescription
SetLineOfSightUpdates the line of sight flag if this uses a particulartransmission type that disables connection if the line ofsight is blocked, for example, optical.
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.
DestroyRemoves the current object from the simulation.
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.
GetLoadedSignaturePatternGets the currently loaded RF pattern and returns the datain degrees as an array from 0 to 360.
GetModelReturns a valid assigned model with the specified type.
GetReadyKeysReturns the list of keys stored in the receiver that are ready in theready data output buffer.
GetReadyMessageKeysReturns the list of keys stored in the receiver that are ready in theready data output buffer and are messages.
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.
ReadBodyTransformThis method will reset the dirty flag on the mass so thatit has been read successfully and is valid.
ReceiveBytesChecks the buffer, at a particular key, and returns the oldestbyte array clump of data that exists on the receiver. If thekey is invalid or no data is found, an empty byte array willbe returned. This will also remove the data from the queue, andit will be deleted from the receiver.
ReceiveJSONChecks the buffer, at a particular key, and returns the oldestJSON object clump of data that exists on the receiver. If thekey is invalid or no data is found, a null reference will bereturned. This will also remove the data from the queue, andit will be deleted from the receiver.
ReceiveMessageChecks the buffer, at a particular key, and attempts to updatea message with the data from the buffer. This will return whetherthe message is successfully updated. If there is no data, or thekey is invalid, then the message will not be updated.
ReceiveStringChecks the buffer, at a particular key, and returns the oldeststring clump of data that exists on the receiver. If the keyis invalid or no data is found, an empty string will be returned.This will also remove the data from the queue, and it will bedeleted from the receiver.
UpdateMassPropertiesUpdates the mass properties of the current physical object ata particular time.
UpdatePointingLossUpdates the pointing loss of the antenna based on the angle ofthe component.