RawAngleStrainPacket
public
WirelessDataPacket
RawAngleStrainPacket

A WirelessDataPacket derived class representing a Raw Angle Strain packet.

Functions
RawAngleStrainPacket
explicit RawAngleStrainPacket(
const WirelessPacket &packet
)

Creates an RawAngleStrainPacket from the passed in WirelessPacket.

Parameters
packet

A WirelessPacket determined to be an RawAngleStrainPacket.

parseSweeps
void parseSweeps()

Parses the passed in WirelessPacket for all the sweep information and adds a sweep to the sweeps container

Exceptions
integrityCheck
static bool integrityCheck(
const WirelessPacket &packet
)

Verifies that the packet is a well formed RawAngleStrainPacket

Parameters
packet

The fully formed Wireless Packet to check the integrity of

Returns

true if the packet is a well formed RawAngleStrainPacket, false otherwise

getUniqueId
static UniqueWirelessPacketId getUniqueId(
const WirelessPacket &packet
)

Gets the unique Id of the WirelessPacket passed in

Parameters
packet

The WirelessPacket to get the unique id of

Returns

The UniqueWirelessPacketId of the passed in packet

distributeAngles
static std::vector<float> distributeAngles(
float low,
float high,
uint8 count
)

Gets a list of angles based on a low, high, and number of angles.

Parameters
low
float

The lower bound angle (inclusive).

high
float

The higher bound angle (inclusive).

count
uint8

The total number of angles.

Returns

The angles determined from the distribution range.