Skip to content

SignalPDU

huggins edited this page Apr 10, 2025 · 2 revisions

Signal PDU

Struct container for all information that is contained inside of a DIS Signal PDU.

struct FSignalPDU 
    : public FDistributedEmissionsFamilyPDU

Includes

Back to Top


Members

Type Name Description
TArray<uint8> Data This field shall specify the audio or digital data conveyed by the radio transmission. The interpretation of the Data field depends on the value of the Encoding Scheme and TDL Type fields.
FEncodingScheme EncodingScheme This field shall specify the encoding used in the Data field of this PDU. The Encoding Scheme shall be composed of a 2-bit field specifying the encoding class and a 14-bit field specifying either the encoding type, or the number of TDL messages contained in this Signal PDU.
int64 SampleRate This field shall specify either (1) the sample rate in samples per second if the encoding class is encoded audio or (2) the data rate in bits per second for data transmissions. If the Encoding Class is database index, this field shall be zero.
int32 Samples This field shall specify the number of samples in this PDU. If the Encoding Class is not encoded audio, this field shall be zero.
ETDLType TDLType This field shall specify the TDL Type as a 16-bit enumeration field when the encoding class is the raw binary, audio, application - specific, or database index representation of a TDL Message. When the data field is not representing a TDL Message, this field shall be set to zero.

Back to Top


Constructors

Name Description
FSignalPDU() Default constructor

Destructors

Name Description
~FSignalPDU() Default destructor

Functions

Return Name Description
SetupFromOpenDIS(const DIS::SignalPdu& SignalPDUIn) Converts an OpenDIS SignalPdu struct to an FSignalPDU struct.
TArray<uint8> ToBytes() Conversion to an array of bytes. Allows for an FSignalPDU struct to be sent out with a UDP send socket.
ToOpenDIS(DIS::ElectromagneticEmissionBeamData& out) Conversion to OpenDIS SignalPdu struct

Back to Top


Details

Data

TArray<uint8> Data

This field shall specify the audio or digital data conveyed by the radio transmission. The interpretation of the Data field depends on the value of the Encoding Scheme and TDL Type fields.

Category: GRILL DIS|Structs|PDUs|RadioCommunicationsFamily|Signal

Back to Top


EncodingScheme

FEncodingScheme EncodingScheme

This field shall specify the encoding used in the Data field of this PDU. The Encoding Scheme shall be composed of a 2-bit field specifying the encoding class and a 14-bit field specifying either the encoding type, or the number of TDL messages contained in this Signal PDU.

Category: GRILL DIS|Structs|PDUs|RadioCommunicationsFamily|Signal

Back to Top


SampleRate

int64 SampleRate

This field shall specify either (1) the sample rate in samples per second if the encoding class is encoded audio or (2) the data rate in bits per second for data transmissions. If the Encoding Class is database index, this field shall be zero.

Category: GRILL DIS|Structs|PDUs|RadioCommunicationsFamily|Signal

Range: [0, 4294967295]

Back to Top


Samples

int32 Samples

This field shall specify the number of samples in this PDU. If the Encoding Class is not encoded audio, this field shall be zero.

Category: GRILL DIS|Structs|PDUs|RadioCommunicationsFamily|Signal

Range: [0, 65535]

Back to Top


TDLType

ETDLType TDLType

This field shall specify the TDL Type as a 16-bit enumeration field when the encoding class is the raw binary, audio, application - specific, or database index representation of a TDL Message. When the data field is not representing a TDL Message, this field shall be set to zero

Category: GRILL DIS|Structs|PDUs|RadioCommunicationsFamily|Signal

Back to Top


FSignalPDU

FSignalPDU() 
    : FRadioCommunicationsFamilyPDU()

Default constructor.

Back to Top


~FSignalPDU

virtual ~FSignalPDU()

Default constructor.

Back to Top


SetupFromOpenDIS

SetupFromOpenDIS
(
    const DIS::SignalPdu& Data
)

Converts an OpenDIS SignalPdu struct to an FSignalPDU struct.

Parameter Description
Data The OpenDIS SignalPdu struct to convert.

Back to Top


ToBytes

virtual TArray<uint8> ToBytes() override

Conversion to OpenDIS SignalPdu struct

Returns
An array of bytes containing the information from this FSignalPDU.

Back to Top


ToOpenDIS

void ToOpenDIS
(
    DIS::SignalPdu& out
)

Conversion to an array of bytes. Allows for an FSignalPDU struct to be sent out with a UDP send socket.

Parameter Description
out The OpenDIS SignalPdu struct representation of this FSignalPDU.

Back to Top


Clone this wiki locally