-
Notifications
You must be signed in to change notification settings - Fork 20
SignalPDU
Struct container for all information that is contained inside of a DIS Signal PDU.
struct FSignalPDU
: public FDistributedEmissionsFamilyPDU- CoreMinimal
- UObject/NoExportTypes.h
- <dis6/SignalPdu.h>
- PDUs/DistributedEmissionsFamily/GRILL_RadioCommunicationsFamilyPDU.h
| 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. |
| Name | Description |
|---|---|
| FSignalPDU() | Default constructor |
| Name | Description |
|---|---|
| ~FSignalPDU() | Default destructor |
| 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 |
TArray<uint8> DataThis 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
FEncodingScheme EncodingSchemeThis 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
int64 SampleRateThis 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]
int32 SamplesThis 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]
ETDLType TDLTypeThis 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
FSignalPDU()
: FRadioCommunicationsFamilyPDU()Default constructor.
virtual ~FSignalPDU()Default constructor.
SetupFromOpenDIS
(
const DIS::SignalPdu& Data
)Converts an OpenDIS SignalPdu struct to an FSignalPDU struct.
| Parameter | Description |
|---|---|
| Data | The OpenDIS SignalPdu struct to convert. |
virtual TArray<uint8> ToBytes() overrideConversion to OpenDIS SignalPdu struct
| Returns |
|---|
| An array of bytes containing the information from this FSignalPDU. |
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. |