A class representing a Wireless Data Packet.
The default constructor for a Wireless Data Packet
The current position into m_dataSweeps to get the next sweep at
The size of a single sweep within this packet
The number of sweeps within this packet
The offset into the payload of the data packet where channel data starts.
void addSweep( |
| ) |
void addDataPoint( |
| ) const |
Adds a WirelessDataPoint from a payload to the given <ChannelData> container.
container ChannelData& | The <ChannelData> container to add the data point to. |
channelNumber uint8 | The channel number to set (ch1 = 1, ch8 = 8). |
channelDataIndex int | The index into the channel data (not the actual channel index). ex. if channel 1 and 3 are active, channel 1 = index 0 and channel 3 = index 1. |
sweepIndex int | The index of the sweep into the packet starting at index 0. |
channelName | The WirelessChannel::ChannelId to give to the WirelessDataPoint. |
virtual WirelessChannel::ChannelId wirelessChannelFromChNum( |
| ) |
Converts a channel number to a WirelessChannel
channelNum int | The channel number to convert (starting at index 1, so channel 1 = 1, channel 8 = 8) |
The WirelessChannel representing the passed in channel number
void getPayloadData( |
| ) const |
void getNextSweep( |
| ) |