Contains an MTData XsMessage and supports functions for extracting contained data.
Definition at line 41 of file legacydatapacket.h.
#include <xSens_MT4/xcommunication/include/xsens/legacydatapacket.h>
Public Member Functions | |
LegacyDataPacket () | |
Construct a new LegacyDataPacket without data. The LegacyDataPacket will be invalid. More... | |
LegacyDataPacket (uint16_t count, bool xbus) | |
Construct a new LegacyDataPacket with room for data from count devices. More... | |
LegacyDataPacket (const LegacyDataPacket &pack) | |
Construct a LegacyDataPacket as a copy of other. More... | |
~LegacyDataPacket () | |
Destructor. More... | |
const LegacyDataPacket & | operator= (const LegacyDataPacket &pack) |
Assignment operator, copies the contents of pack into this. More... | |
uint16_t | itemCount (void) const |
Returns the number of devices whose data is contained in the object. More... | |
void | setItemCount (uint16_t count) |
Set the number of devices whose data is contained in this object to count. More... | |
XsTimeStamp | timeOfArrival (void) const |
Returns the Time Of Arrival value as stored in the object. More... | |
void | setTimeOfArrival (XsTimeStamp timeOfArrival) |
Set the Time Of Arrival value to timeofarrival. More... | |
XsTimeStamp | rtc (void) const |
Returns the Real Time Clock value as stored in the object. More... | |
void | setRtc (XsTimeStamp rtc) |
Set the Real Time Clock value to realtimeclock. More... | |
int64_t | largePacketCounter (void) const |
Return the 64-bit sample counter associated with this packet. More... | |
void | setLargePacketCounter (int64_t sc) |
Set the 64-bit sample counter associated with this packet. More... | |
XsMessage | message (void) const |
Returns a copy of the XsMessage contained by the object, including computed and added data. More... | |
void | setMessage (const XsMessage &message) |
Set the source message to msg. More... | |
XsMessage | originalMessage (void) const |
Returns the original message as it was received, without computed and added data (except for SDI interval reconstruction) More... | |
PacketInfo | packetInfo (int32_t index) const |
Returns the packet info for the index'th device in the packet. More... | |
bool | setDataFormat (const XsDataFormat &format, int32_t index=0) |
Sets the data format of the device with the given index to format. More... | |
bool | setDataFormat (XsOutputMode outputMode, XsOutputSettings outputSettings, int32_t index=0) |
Sets the data format of the device with the given index to outputMode and outputSettings. More... | |
XsDataFormat | dataFormat (int32_t index=0) const |
Returns the data format of the device with the given index. More... | |
void | setXbusSystem (bool xbus, bool convert=false) |
Sets the xbus flag. More... | |
bool | isXbusSystem (void) const |
Returns whether the xbus flag is set or not. More... | |
int32_t | findDeviceId (XsDeviceId dev) const |
Returns the index of the fixed data with id dev. More... | |
void | setDeviceId (XsDeviceId deviceId, int32_t index) |
Sets the device ID of the device with the given index to deviceid. More... | |
XsDeviceId | deviceId (int32_t index) const |
Returns the device ID of the device with the given index. More... | |
uint16_t | frameCounter () const |
Return the frame counter (previously: sample counter) of the packet. More... | |
XsSize | dataSize (int32_t index=0) const |
Returns the size of the data. More... | |
void | updateInfoList () |
Update the internal info list by analyzing the known XsDataFormat for each device. More... | |
uint16_t | getFPValueSize (int32_t index) const |
Returns the floating/fixed point value size in bytes. More... | |
XsUShortVector | rawAcceleration (int32_t index=0) const |
The Raw Accelerometer component of a data item. More... | |
bool | containsRawAcceleration (int32_t index=0) const |
Check if data item contains Raw Accelerometer data. More... | |
bool | setRawAcceleration (const XsUShortVector &vec, int32_t index=0) |
Add/update Raw Accelerometer data for the item. More... | |
XsUShortVector | rawGyroscopeData (int32_t index=0) const |
Return the Raw Gyroscope component of a data item. More... | |
bool | containsRawGyroscopeData (int32_t index=0) const |
Check if data item contains Raw Gyroscope data. More... | |
bool | setRawGyroscopeData (const XsUShortVector &vec, int32_t index=0) |
Add/update Raw Gyroscope data for the item. More... | |
XsUShortVector | rawMagneticField (int32_t index=0) const |
Return the Raw Magnetometer component of a data item. More... | |
bool | containsRawMagneticField (int32_t index=0) const |
Check if data item contains Raw Magnetometer data. More... | |
bool | setRawMagneticField (const XsUShortVector &vec, int32_t index=0) |
Add/update Raw Magnetometer data for the item. More... | |
uint16_t | rawTemperature (int32_t index=0, int channel=0) const |
Return the Raw Temperature component of a data item. More... | |
bool | containsRawTemperature (int32_t index=0, int channel=0) const |
Check if data item contains Raw Temperature data. More... | |
bool | setRawTemperature (uint16_t temp, int32_t index=0, int channel=0) |
Add/update Raw Temperature data for the item. More... | |
int | rawTemperatureChannelCount (int32_t index=0) const |
Returns the number of available Raw Temperature channels. More... | |
XsScrData | rawData (int32_t index=0) const |
Return the Raw Data component of a data item. More... | |
bool | containsRawData (int32_t index=0) const |
Check if data item contains Raw Data. More... | |
bool | setRawData (const XsScrData &data, int32_t index=0) |
Add/update Raw Data for the item. More... | |
XsGpsPvtData | gpsPvtData (int32_t index=0) const |
Return the Gps PVT data component of a data item. More... | |
bool | containsGpsPvtData (int32_t index=0) const |
Check if data item contains Gps PVT Data. More... | |
bool | setGpsPvtData (const XsGpsPvtData &data, int32_t index=0) |
Add/update Gps PVT Data for the item. More... | |
XsPressure | pressure (int32_t index=0) const |
Return the pressure data component of a data item. More... | |
bool | containsPressure (int32_t index=0) const |
Return true if the packet contains pressure data. More... | |
bool | setPressure (const XsPressure &data, int32_t index=0) |
Add/update pressure data for the item. More... | |
MtwSdiData | mtwSdiData (int32_t index=0) const |
Return the strapdown integration (SDI) data component of a data item. More... | |
bool | containsMtwSdiData (int32_t index=0) const |
Check if data item contains strapdown integration data. More... | |
bool | setMtwSdiData (const MtwSdiData &data, int32_t index=0) |
Add/update strapdown integration data for the item. More... | |
double | temperature (int32_t index=0, int channel=0) const |
Return the Temperature component of a data item. More... | |
bool | containsTemperature (int32_t index=0, int channel=0) const |
Check if data item contains Temperature data. More... | |
bool | setTemperature (const double &temp, int32_t index=0, int channel=0) |
Add/update Calibrated Accelerometer data for the item. More... | |
int | temperatureChannelCount (int32_t index=0) const |
Returns the number of temperature channels. More... | |
XsVector | calibratedAcceleration (int32_t index=0) const |
Return the Calibrated Accelerometer component of a data item. More... | |
bool | containsCalibratedAcceleration (int32_t index=0) const |
Check if data item contains Calibrated Accelerometer data. More... | |
bool | setCalibratedAcceleration (const XsVector &vec, int32_t index=0) |
Add/update Calibrated Accelerometer data for the item. More... | |
XsVector | calibratedGyroscopeData (int32_t index=0) const |
Return the Calibrated Gyroscope component of a data item. More... | |
bool | containsCalibratedGyroscopeData (int32_t index=0) const |
Check if data item contains Calibrated Gyroscope data. More... | |
bool | setCalibratedGyroscopeData (const XsVector &vec, int32_t index=0) |
Add/update Calibrated Gyroscope data for the item. More... | |
XsVector | calibratedMagneticField (int32_t index=0) const |
Return the Calibrated Magnetometer component of a data item. More... | |
bool | containsCalibratedMagneticField (int32_t index=0) const |
Check if data item contains Calibrated Magnetometer data. More... | |
bool | setCalibratedMagneticField (const XsVector &vec, int32_t index=0) |
Add/update Calibrated Magnetometer data for the item. More... | |
XsCalibratedData | calibratedData (int32_t index=0) const |
Return the Calibrated Data component of a data item. More... | |
bool | containsCalibratedData (int32_t index=0) const |
Check if data item contains Calibrated Data. More... | |
bool | setCalibratedData (const XsCalibratedData &data, int32_t index=0) |
Add/update Calibrated Data for the item. More... | |
XsQuaternion | orientationQuaternion (int32_t index=0) const |
Return the Orientation component of a data item as a Quaternion. More... | |
bool | containsOrientationQuaternion (int32_t index=0) const |
Check if data item contains Quaternion Orientation data. More... | |
bool | setOrientationQuaternion (const XsQuaternion &data, int32_t index=0) |
Add/update Quaternion Orientation data for the item. More... | |
XsEuler | orientationEuler (int32_t index=0) const |
Return the Orientation component of a data item as Euler angles. More... | |
bool | containsOrientationEuler (int32_t index=0) const |
Check if data item contains Euler Orientation data. More... | |
bool | setOrientationEuler (const XsEuler &data, int32_t index=0) |
Add/update Euler Orientation data for the item. More... | |
XsMatrix | orientationMatrix (int32_t index=0) const |
Return the Orientation component of a data item as an Orientation Matrix. More... | |
bool | containsOrientationMatrix (int32_t index=0) const |
Check if data item contains Matrix Orientation data. More... | |
bool | setOrientationMatrix (const XsMatrix &data, int32_t index=0) |
Add/update Matrix Orientation data for the item. More... | |
bool | containsOrientation (int32_t index=0) const |
Check if data item contains Orientation Data of any kind. More... | |
XsAnalogInData | analogIn1Data (int32_t index=0) const |
Return the AnalogIn 1 component of a data item. More... | |
bool | containsAnalogIn1Data (int32_t index=0) const |
Check if data item contains AnalogIn 1. More... | |
bool | setAnalogIn1Data (const XsAnalogInData &data, int32_t index=0) |
Add/update AnalogIn 1 for the item. More... | |
XsAnalogInData | analogIn2Data (int32_t index=0) const |
Return the AnalogIn 2 component of a data item. More... | |
bool | containsAnalogIn2Data (int32_t index=0) const |
Check if data item contains AnalogIn 2. More... | |
bool | setAnalogIn2Data (const XsAnalogInData &data, int32_t index=0) |
Add/update AnalogIn 2 for the item. More... | |
XsVector | positionLLA (int32_t index=0) const |
Return the Position Lat Lon Alt component of a data item. More... | |
bool | containsPositionLLA (int32_t index=0) const |
Check if data item contains Position Lat Lon Alt. More... | |
bool | setPositionLLA (const XsVector &data, int32_t index=0) |
Add/update Position Lat Lon Alt for the item. More... | |
XsVector | velocity (int32_t index=0) const |
Return the Velocity component of a data item. More... | |
bool | containsVelocity (int32_t index=0) const |
Check if data item contains Velocity. More... | |
bool | setVelocity (const XsVector &data, int32_t index=0) |
Add/update Velocity for the item. More... | |
uint32_t | status (int32_t index, bool *outIsDetailed) const |
Return the Status component of a data item. More... | |
bool | containsStatus (int32_t index=0) const |
Check if data item contains Status. More... | |
bool | containsDetailedStatus (int32_t index=0) const |
Check if data item contains detailed Status information. More... | |
bool | setStatus (const uint32_t data, int32_t index=0) |
Add/update Status information for the item. More... | |
uint16_t | packetCounter (int32_t index=0) const |
Return the Sample Counter component of the packet. More... | |
bool | containsPacketCounter (int32_t index=0) const |
Check if data item contains Sample Counter. More... | |
bool | setPacketCounter (const uint16_t counter, int32_t index=0) |
Add/update Sample Counter for all items. More... | |
XsUtcTime | utcTime (int32_t index=0) const |
Return the UTC Time component of the packet. More... | |
bool | containsUtcTime (int32_t index=0) const |
Check if data item contains UTC Time. More... | |
bool | setUtcTime (const XsUtcTime &data, int32_t index=0) |
Add/update UTC Time for all items. More... | |
XsVector | freeAcceleration (int32_t index=0) const |
Return the Acc-G component of the packet. More... | |
bool | containsFreeAcceleration (int32_t index=0) const |
Check if data item contains XKF-3 Acc-G data. More... | |
bool | setFreeAcceleration (const XsVector &g, int32_t index=0) |
Add/update XKF-3 Acc-G data for the item. More... | |
XsTimeStamp | triggerIndication (int channelID) const |
Return the synhcronization time recorded by the station. More... | |
bool | containsTriggerIndication (int channelID=0) const |
Check if data item contains indication time on the given line. More... | |
bool | setTriggerIndication (int channelID, const XsTimeStamp &t) |
Add/update trigger indication time for the item to the given line. More... | |
const PacketFixedData * | fixedData () const |
Returns a const pointer to the contained fixed data, mostly used for debugging. More... | |
Private Attributes | |
PacketFixedData * | m_fixedData |
Fixed packet data. More... | |
XsDeviceId | m_lastFoundId |
Last found deviceId, speeds up searches. More... | |
uint16_t | m_lastFoundIndex |
Index of last found deviceId, speeds up searches. More... | |
XsMessage | m_msg |
The message. More... | |
XsTimeStamp | m_rtc |
Sample time in ms, based on the sample counter. More... | |
XsTimeStamp | m_toa |
Time of arrival. More... | |
XsTimeStamp | m_packetId |
64 bit sample counter More... | |
XsTimeStamp | m_triggerIn1 |
Trigger indication on line 1. More... | |
XsTimeStamp | m_triggerIn2 |
Trigger indication on line 2. More... | |
LegacyDataPacket::LegacyDataPacket | ( | ) |
Construct a new LegacyDataPacket without data. The LegacyDataPacket will be invalid.
Definition at line 51 of file legacydatapacket.cpp.
References PACKETLOG.
LegacyDataPacket::LegacyDataPacket | ( | uint16_t | count, |
bool | xbus | ||
) |
Construct a new LegacyDataPacket with room for data from count devices.
count | The number of devices whose data is in the object |
xbus | Whether the message was sent by an Xbus Master or by a standalone MT. This matters because the sample counter is in a different place. |
Definition at line 71 of file legacydatapacket.cpp.
References m_fixedData, PacketFixedData::m_xm, and PACKETLOG.
LegacyDataPacket::LegacyDataPacket | ( | const LegacyDataPacket & | pack | ) |
Construct a LegacyDataPacket as a copy of other.
Definition at line 89 of file legacydatapacket.cpp.
References PACKETLOG.
LegacyDataPacket::~LegacyDataPacket | ( | ) |
Destructor.
Definition at line 135 of file legacydatapacket.cpp.
References m_fixedData, and PACKETLOG.
XsAnalogInData LegacyDataPacket::analogIn1Data | ( | int32_t | index = 0 | ) | const |
Return the AnalogIn 1 component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 1996 of file legacydatapacket.cpp.
References containsAnalogIn1Data(), PacketInfo::m_analogIn1, m_fixedData, PacketFixedData::m_infoList, and m_msg.
XsAnalogInData LegacyDataPacket::analogIn2Data | ( | int32_t | index = 0 | ) | const |
Return the AnalogIn 2 component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 2033 of file legacydatapacket.cpp.
References containsAnalogIn2Data(), PacketInfo::m_analogIn2, m_fixedData, PacketFixedData::m_infoList, and m_msg.
Return the Calibrated Accelerometer component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 1581 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsCalibratedAcceleration(), PacketInfo::m_calAcc, m_fixedData, PacketFixedData::m_infoList, and m_msg.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
XsCalibratedData LegacyDataPacket::calibratedData | ( | int32_t | index = 0 | ) | const |
Return the Calibrated Data component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 1721 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsCalibratedData(), PacketInfo::m_calAcc, PacketInfo::m_calGyr, PacketInfo::m_calMag, m_fixedData, PacketFixedData::m_infoList, m_msg, and XS_DATA_ITEM_NOT_AVAILABLE.
Return the Calibrated Gyroscope component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 1627 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsCalibratedGyroscopeData(), PacketInfo::m_calGyr, m_fixedData, PacketFixedData::m_infoList, and m_msg.
Return the Calibrated Magnetometer component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 1673 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsCalibratedMagneticField(), PacketInfo::m_calMag, m_fixedData, PacketFixedData::m_infoList, and m_msg.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsAnalogIn1Data | ( | int32_t | index = 0 | ) | const |
Check if data item contains AnalogIn 1.
Definition at line 2005 of file legacydatapacket.cpp.
References dataSize(), PacketInfo::m_analogIn1, m_fixedData, PacketFixedData::m_infoList, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by analogIn1Data().
bool LegacyDataPacket::containsAnalogIn2Data | ( | int32_t | index = 0 | ) | const |
Check if data item contains AnalogIn 2.
Definition at line 2042 of file legacydatapacket.cpp.
References dataSize(), PacketInfo::m_analogIn2, m_fixedData, PacketFixedData::m_infoList, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by analogIn2Data().
bool LegacyDataPacket::containsCalibratedAcceleration | ( | int32_t | index = 0 | ) | const |
Check if data item contains Calibrated Accelerometer data.
Definition at line 1592 of file legacydatapacket.cpp.
References dataSize(), PacketInfo::m_calAcc, m_fixedData, PacketFixedData::m_infoList, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by calibratedAcceleration(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsCalibratedData | ( | int32_t | index = 0 | ) | const |
Check if data item contains Calibrated Data.
index | The index of the item of which the data should be returned. |
Definition at line 1767 of file legacydatapacket.cpp.
References dataSize(), PacketInfo::m_calData, m_fixedData, PacketFixedData::m_infoList, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by calibratedData().
bool LegacyDataPacket::containsCalibratedGyroscopeData | ( | int32_t | index = 0 | ) | const |
Check if data item contains Calibrated Gyroscope data.
Definition at line 1638 of file legacydatapacket.cpp.
References dataSize(), PacketInfo::m_calGyr, m_fixedData, PacketFixedData::m_infoList, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by calibratedGyroscopeData(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsCalibratedMagneticField | ( | int32_t | index = 0 | ) | const |
Check if data item contains Calibrated Magnetometer data.
Definition at line 1684 of file legacydatapacket.cpp.
References dataSize(), PacketInfo::m_calMag, m_fixedData, PacketFixedData::m_infoList, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by calibratedMagneticField(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsDetailedStatus | ( | int32_t | index = 0 | ) | const |
Check if data item contains detailed Status information.
Definition at line 2194 of file legacydatapacket.cpp.
References dataSize(), PacketInfo::m_detailedStatus, m_fixedData, PacketFixedData::m_infoList, and XS_DATA_ITEM_NOT_AVAILABLE.
bool LegacyDataPacket::containsFreeAcceleration | ( | int32_t | index = 0 | ) | const |
Check if data item contains XKF-3 Acc-G data.
Definition at line 2340 of file legacydatapacket.cpp.
References dataSize(), PacketInfo::m_acc_g, m_fixedData, PacketFixedData::m_infoList, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by freeAcceleration().
bool LegacyDataPacket::containsGpsPvtData | ( | int32_t | index = 0 | ) | const |
Check if data item contains Gps PVT Data.
Definition at line 1226 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketInfo::m_gpsPvtData, PacketFixedData::m_infoList, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by gpsPvtData(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsMtwSdiData | ( | int32_t | index = 0 | ) | const |
Check if data item contains strapdown integration data.
index | The index of the item of which the data should be returned. |
Definition at line 1434 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_mtwSdiData, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by frameCounter(), mtwSdiData(), pressure(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsOrientation | ( | int32_t | index = 0 | ) | const |
Check if data item contains Orientation Data of any kind.
Definition at line 1984 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_oriEul, PacketInfo::m_oriMat, PacketInfo::m_oriQuat, and XS_DATA_ITEM_NOT_AVAILABLE.
bool LegacyDataPacket::containsOrientationEuler | ( | int32_t | index = 0 | ) | const |
Check if data item contains Euler Orientation data.
Definition at line 1894 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_oriEul, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by orientationEuler(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsOrientationMatrix | ( | int32_t | index = 0 | ) | const |
Check if data item contains Matrix Orientation data.
Definition at line 1948 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_oriMat, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by orientationMatrix(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsOrientationQuaternion | ( | int32_t | index = 0 | ) | const |
Check if data item contains Quaternion Orientation data.
Definition at line 1836 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_oriQuat, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by orientationQuaternion(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsPacketCounter | ( | int32_t | index = 0 | ) | const |
Check if data item contains Sample Counter.
Definition at line 2233 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_sc, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by frameCounter(), packetCounter(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsPositionLLA | ( | int32_t | index = 0 | ) | const |
Check if data item contains Position Lat Lon Alt.
Definition at line 2081 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_posLLA, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by positionLLA(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsPressure | ( | int32_t | index = 0 | ) | const |
Return true if the packet contains pressure data.
Definition at line 1330 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketInfo::m_gpsPvtPressure, PacketFixedData::m_infoList, PacketInfo::m_wBaroMeter, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by pressure().
bool LegacyDataPacket::containsRawAcceleration | ( | int32_t | index = 0 | ) | const |
Check if data item contains Raw Accelerometer data.
index | The index of the item of which the data should be returned |
Definition at line 961 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_rawAcc, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by rawAcceleration().
bool LegacyDataPacket::containsRawData | ( | int32_t | index = 0 | ) | const |
Check if data item contains Raw Data.
Definition at line 1133 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_rawData, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by rawData(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsRawGyroscopeData | ( | int32_t | index = 0 | ) | const |
Check if data item contains Raw Gyroscope data.
Definition at line 1000 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_rawGyr, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by rawGyroscopeData().
bool LegacyDataPacket::containsRawMagneticField | ( | int32_t | index = 0 | ) | const |
Check if data item contains Raw Magnetometer data.
Definition at line 1037 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_rawMag, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by rawMagneticField().
bool LegacyDataPacket::containsRawTemperature | ( | int32_t | index = 0 , |
int | channel = 0 |
||
) | const |
Check if data item contains Raw Temperature data.
Definition at line 1071 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_rawTemp, XS_DATA_ITEM_NOT_AVAILABLE, and XS_MAX_TEMPERATURE_CHANNELS.
Referenced by rawTemperature().
bool LegacyDataPacket::containsStatus | ( | int32_t | index = 0 | ) | const |
Check if data item contains Status.
Definition at line 2187 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_status, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by status(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsTemperature | ( | int32_t | index = 0 , |
int | channel = 0 |
||
) | const |
Check if data item contains Temperature data.
Definition at line 1529 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_temp, XS_DATA_ITEM_NOT_AVAILABLE, and XS_MAX_TEMPERATURE_CHANNELS.
Referenced by temperature(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsTriggerIndication | ( | int | channelID = 0 | ) | const |
Check if data item contains indication time on the given line.
Definition at line 2386 of file legacydatapacket.cpp.
References m_triggerIn1, and m_triggerIn2.
bool LegacyDataPacket::containsUtcTime | ( | int32_t | index = 0 | ) | const |
Check if data item contains UTC Time.
Definition at line 2278 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_utcTime, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by utcTime(), and XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::containsVelocity | ( | int32_t | index = 0 | ) | const |
Check if data item contains Velocity.
Definition at line 2126 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_velNEDorNWU, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by velocity(), and XsDataPacket_assignFromXsLegacyDataPacket().
XsDataFormat LegacyDataPacket::dataFormat | ( | int32_t | index = 0 | ) | const |
Returns the data format of the device with the given index.
index | The index of the device whose data format should be returned |
Definition at line 323 of file legacydatapacket.cpp.
References m_fixedData, PacketFixedData::m_formatList, and PacketFixedData::m_itemCount.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
Returns the size of the data.
index | The index of the item of which the size should be returned. |
Definition at line 475 of file legacydatapacket.cpp.
References m_fixedData, PacketFixedData::m_infoList, and PacketInfo::m_size.
Referenced by containsAnalogIn1Data(), containsAnalogIn2Data(), containsCalibratedAcceleration(), containsCalibratedData(), containsCalibratedGyroscopeData(), containsCalibratedMagneticField(), containsDetailedStatus(), containsFreeAcceleration(), containsGpsPvtData(), containsMtwSdiData(), containsOrientation(), containsOrientationEuler(), containsOrientationMatrix(), containsOrientationQuaternion(), containsPacketCounter(), containsPositionLLA(), containsPressure(), containsRawAcceleration(), containsRawData(), containsRawGyroscopeData(), containsRawMagneticField(), containsRawTemperature(), containsStatus(), containsTemperature(), containsUtcTime(), containsVelocity(), setAnalogIn1Data(), setAnalogIn2Data(), setCalibratedAcceleration(), setCalibratedData(), setCalibratedGyroscopeData(), setCalibratedMagneticField(), setFreeAcceleration(), setGpsPvtData(), setOrientationEuler(), setOrientationMatrix(), setOrientationQuaternion(), setPacketCounter(), setPositionLLA(), setPressure(), setRawAcceleration(), setRawData(), setRawGyroscopeData(), setRawMagneticField(), setRawTemperature(), setStatus(), setTemperature(), setUtcTime(), and setVelocity().
XsDeviceId LegacyDataPacket::deviceId | ( | int32_t | index | ) | const |
Returns the device ID of the device with the given index.
index | The index of the device whose device ID should be returned |
Definition at line 298 of file legacydatapacket.cpp.
References m_fixedData, and PacketFixedData::m_idList.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
int32_t LegacyDataPacket::findDeviceId | ( | XsDeviceId | dev | ) | const |
Returns the index of the fixed data with id dev.
If the result is not -1, it can be used as the index parameter in other functions that require it (see the list below).
dev | The device ID to find |
Definition at line 276 of file legacydatapacket.cpp.
References m_fixedData, PacketFixedData::m_idList, PacketFixedData::m_itemCount, m_lastFoundId, and m_lastFoundIndex.
|
inline |
Returns a const pointer to the contained fixed data, mostly used for debugging.
Definition at line 331 of file legacydatapacket.h.
References m_fixedData.
uint16_t LegacyDataPacket::frameCounter | ( | ) | const |
Return the frame counter (previously: sample counter) of the packet.
For SDI data, this function will return the Last Frame Number in the SDI interval. For other data, this function will return the plain Sample Counter.
Definition at line 254 of file legacydatapacket.cpp.
References containsMtwSdiData(), containsPacketCounter(), m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_sc, and PacketInfo::m_wLastFrameNumber.
Return the Acc-G component of the packet.
index | The index of the item of which the data should be returned. |
Definition at line 2329 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsFreeAcceleration(), PacketInfo::m_acc_g, m_fixedData, PacketFixedData::m_infoList, and m_msg.
Returns the floating/fixed point value size in bytes.
index | The index of the item whose fp size should be returned. |
Definition at line 443 of file legacydatapacket.cpp.
References m_fixedData, PacketFixedData::m_formatList, XsDataFormat::m_outputSettings, XOS_Dataformat_Double, XOS_Dataformat_F1220, XOS_Dataformat_Float, XOS_Dataformat_Fp1632, and XOS_Dataformat_Mask.
Referenced by orientationMatrix(), setCalibratedAcceleration(), setCalibratedData(), setCalibratedGyroscopeData(), setCalibratedMagneticField(), setFreeAcceleration(), setOrientationEuler(), setOrientationMatrix(), setOrientationQuaternion(), setPositionLLA(), setTemperature(), setVelocity(), and updateInfoList().
XsGpsPvtData LegacyDataPacket::gpsPvtData | ( | int32_t | index = 0 | ) | const |
Return the Gps PVT data component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 1172 of file legacydatapacket.cpp.
References containsGpsPvtData(), for(), m_fixedData, PacketInfo::m_gpsPvtGpsAge, PacketInfo::m_gpsPvtGpsData, PacketInfo::m_gpsPvtPressure, PacketInfo::m_gpsPvtPressureAge, PacketFixedData::m_infoList, m_msg, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
bool LegacyDataPacket::isXbusSystem | ( | void | ) | const |
Returns whether the xbus flag is set or not.
Definition at line 384 of file legacydatapacket.cpp.
References m_fixedData, and PacketFixedData::m_xm.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
Returns the number of devices whose data is contained in the object.
Definition at line 153 of file legacydatapacket.cpp.
References m_fixedData, and PacketFixedData::m_itemCount.
Return the 64-bit sample counter associated with this packet.
Definition at line 193 of file legacydatapacket.cpp.
References m_packetId.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
Returns a copy of the XsMessage contained by the object, including computed and added data.
Definition at line 207 of file legacydatapacket.cpp.
References m_msg.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
MtwSdiData LegacyDataPacket::mtwSdiData | ( | int32_t | index = 0 | ) | const |
Return the strapdown integration (SDI) data component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 1374 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsMtwSdiData(), m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_wAidingData, PacketInfo::m_wBaroMeter, PacketInfo::m_wClientId, PacketInfo::m_wCurrentBias, PacketInfo::m_wFirstFrameNumber, PacketInfo::m_wLastFrameNumber, PacketInfo::m_wMagnetoMeter, PacketInfo::m_wOrientationIncrement, PacketInfo::m_wRssi, PacketInfo::m_wTimeSync, and PacketInfo::m_wVelocityIncrement.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
const LegacyDataPacket & LegacyDataPacket::operator= | ( | const LegacyDataPacket & | pack | ) |
Assignment operator, copies the contents of pack into this.
Definition at line 107 of file legacydatapacket.cpp.
References m_fixedData, m_lastFoundId, m_lastFoundIndex, m_msg, m_packetId, m_rtc, m_toa, m_triggerIn1, m_triggerIn2, and PACKETLOG.
Return the Orientation component of a data item as Euler angles.
index | The index of the item of which the data should be returned. |
Definition at line 1881 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsOrientationEuler(), m_fixedData, PacketFixedData::m_infoList, m_msg, and PacketInfo::m_oriEul.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
Return the Orientation component of a data item as an Orientation Matrix.
index | The index of the item of which the data should be returned. |
Definition at line 1928 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsOrientationMatrix(), getFPValueSize(), m_fixedData, PacketFixedData::m_infoList, m_msg, and PacketInfo::m_oriMat.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
XsQuaternion LegacyDataPacket::orientationQuaternion | ( | int32_t | index = 0 | ) | const |
Return the Orientation component of a data item as a Quaternion.
index | The index of the item of which the data should be returned. |
Definition at line 1824 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsOrientationQuaternion(), m_fixedData, PacketFixedData::m_infoList, m_msg, and PacketInfo::m_oriQuat.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
Returns the original message as it was received, without computed and added data (except for SDI interval reconstruction)
Definition at line 211 of file legacydatapacket.cpp.
References PacketInfo::m_doubleBoundary, m_fixedData, PacketFixedData::m_infoList, PacketFixedData::m_itemCount, and m_msg.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
Return the Sample Counter component of the packet.
index | The index of the item of which the data should be returned. (ignored) |
Definition at line 2228 of file legacydatapacket.cpp.
References containsPacketCounter(), m_fixedData, PacketFixedData::m_infoList, m_msg, and PacketInfo::m_sc.
Referenced by setXbusSystem(), and XsDataPacket_assignFromXsLegacyDataPacket().
PacketInfo LegacyDataPacket::packetInfo | ( | int32_t | index | ) | const |
Returns the packet info for the index'th device in the packet.
This describes what data is contained by the object.
index | The index of the device whose packet info should be returned |
Definition at line 238 of file legacydatapacket.cpp.
References m_fixedData, PacketFixedData::m_infoList, and PacketFixedData::m_itemCount.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
Return the Position Lat Lon Alt component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 2070 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsPositionLLA(), m_fixedData, PacketFixedData::m_infoList, m_msg, and PacketInfo::m_posLLA.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
XsPressure LegacyDataPacket::pressure | ( | int32_t | index = 0 | ) | const |
Return the pressure data component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 1299 of file legacydatapacket.cpp.
References containsMtwSdiData(), containsPressure(), m_fixedData, PacketInfo::m_gpsPvtPressure, PacketInfo::m_gpsPvtPressureAge, PacketFixedData::m_infoList, m_msg, PacketInfo::m_wAidingData, and PacketInfo::m_wBaroMeter.
XsUShortVector LegacyDataPacket::rawAcceleration | ( | int32_t | index = 0 | ) | const |
The Raw Accelerometer component of a data item.
index | The index of the item of which the data should be returned. \returns A XsUShortVector containing the x, y and z axis values in thatorder |
Definition at line 944 of file legacydatapacket.cpp.
References containsRawAcceleration(), m_fixedData, PacketFixedData::m_infoList, m_msg, and PacketInfo::m_rawAcc.
Return the Raw Data component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 1115 of file legacydatapacket.cpp.
References containsRawData(), m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_rawData, rawTemperatureChannelCount(), and swapEndian16.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
XsUShortVector LegacyDataPacket::rawGyroscopeData | ( | int32_t | index = 0 | ) | const |
Return the Raw Gyroscope component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 990 of file legacydatapacket.cpp.
References containsRawGyroscopeData(), m_fixedData, PacketFixedData::m_infoList, m_msg, and PacketInfo::m_rawGyr.
XsUShortVector LegacyDataPacket::rawMagneticField | ( | int32_t | index = 0 | ) | const |
Return the Raw Magnetometer component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 1027 of file legacydatapacket.cpp.
References containsRawMagneticField(), m_fixedData, PacketFixedData::m_infoList, m_msg, and PacketInfo::m_rawMag.
Return the Raw Temperature component of a data item.
index | The index of the item of which the data should be returned. |
channel | The Temperature channel to return |
Definition at line 1064 of file legacydatapacket.cpp.
References containsRawTemperature(), m_fixedData, PacketFixedData::m_infoList, m_msg, and PacketInfo::m_rawTemp.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
int LegacyDataPacket::rawTemperatureChannelCount | ( | int32_t | index = 0 | ) | const |
Returns the number of available Raw Temperature channels.
Definition at line 1102 of file legacydatapacket.cpp.
References m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_rawTemp, XS_DATA_ITEM_NOT_AVAILABLE, and XS_MAX_TEMPERATURE_CHANNELS.
Referenced by rawData(), setRawData(), setRawTemperature(), and XsDataPacket_assignFromXsLegacyDataPacket().
XsTimeStamp LegacyDataPacket::rtc | ( | void | ) | const |
Returns the Real Time Clock value as stored in the object.
Definition at line 180 of file legacydatapacket.cpp.
References m_rtc.
bool LegacyDataPacket::setAnalogIn1Data | ( | const XsAnalogInData & | data, |
int32_t | index = 0 |
||
) |
Add/update AnalogIn 1 for the item.
Definition at line 2013 of file legacydatapacket.cpp.
References dataSize(), PacketInfo::m_analogIn1, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
bool LegacyDataPacket::setAnalogIn2Data | ( | const XsAnalogInData & | data, |
int32_t | index = 0 |
||
) |
Add/update AnalogIn 2 for the item.
Definition at line 2050 of file legacydatapacket.cpp.
References dataSize(), PacketInfo::m_analogIn2, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
Add/update Calibrated Accelerometer data for the item.
Definition at line 1599 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, dataSize(), getFPValueSize(), ISDOUBLE, PacketInfo::m_calAcc, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
bool LegacyDataPacket::setCalibratedData | ( | const XsCalibratedData & | data, |
int32_t | index = 0 |
||
) |
Add/update Calibrated Data for the item.
Definition at line 1775 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, dataSize(), getFPValueSize(), ISDOUBLE, PacketInfo::m_calAcc, PacketInfo::m_calData, PacketInfo::m_calGyr, PacketInfo::m_calMag, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
Add/update Calibrated Gyroscope data for the item.
Definition at line 1645 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, dataSize(), getFPValueSize(), ISDOUBLE, PacketInfo::m_calGyr, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
Add/update Calibrated Magnetometer data for the item.
Definition at line 1691 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, dataSize(), getFPValueSize(), ISDOUBLE, PacketInfo::m_calMag, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
bool LegacyDataPacket::setDataFormat | ( | const XsDataFormat & | format, |
int32_t | index = 0 |
||
) |
Sets the data format of the device with the given index to format.
format | The data format of the device |
index | The index of the device whose data format should be updated |
Definition at line 340 of file legacydatapacket.cpp.
References m_fixedData, PacketFixedData::m_formatList, and updateInfoList().
Referenced by mrpt::hwdrivers::CIMUXSens_MT4::doProcess().
bool LegacyDataPacket::setDataFormat | ( | XsOutputMode | outputMode, |
XsOutputSettings | outputSettings, | ||
int32_t | index = 0 |
||
) |
Sets the data format of the device with the given index to outputMode and outputSettings.
outputMode | The output mode of the device (see low level communication documentation) |
outputSettings | The output settings of the device (see low level communication documentation) |
index | The index of the device whose data format should be updated |
Definition at line 364 of file legacydatapacket.cpp.
References m_fixedData, PacketFixedData::m_formatList, XsDataFormat::m_outputMode, XsDataFormat::m_outputSettings, and updateInfoList().
void LegacyDataPacket::setDeviceId | ( | XsDeviceId | deviceid, |
int32_t | index | ||
) |
Sets the device ID of the device with the given index to deviceid.
deviceid | The device ID to set |
index | The index of the device whose device ID should be updated |
Definition at line 311 of file legacydatapacket.cpp.
References m_fixedData, and PacketFixedData::m_idList.
Referenced by mrpt::hwdrivers::CIMUXSens_MT4::doProcess().
Add/update XKF-3 Acc-G data for the item.
Definition at line 2347 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, dataSize(), getFPValueSize(), ISDOUBLE, PacketInfo::m_acc_g, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
bool LegacyDataPacket::setGpsPvtData | ( | const XsGpsPvtData & | data, |
int32_t | index = 0 |
||
) |
Add/update Gps PVT Data for the item.
Definition at line 1234 of file legacydatapacket.cpp.
References dataSize(), for(), m_fixedData, PacketInfo::m_gpsPvtData, PacketInfo::m_gpsPvtGpsAge, PacketInfo::m_gpsPvtGpsData, PacketInfo::m_gpsPvtHacc, PacketInfo::m_gpsPvtHeight, PacketInfo::m_gpsPvtItow, PacketInfo::m_gpsPvtLatitude, PacketInfo::m_gpsPvtLongitude, PacketInfo::m_gpsPvtPressure, PacketInfo::m_gpsPvtPressureAge, PacketInfo::m_gpsPvtSacc, PacketInfo::m_gpsPvtVacc, PacketInfo::m_gpsPvtVeld, PacketInfo::m_gpsPvtVele, PacketInfo::m_gpsPvtVeln, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
Set the number of devices whose data is contained in this object to count.
Definition at line 162 of file legacydatapacket.cpp.
References m_fixedData, and PacketFixedData::m_itemCount.
Set the 64-bit sample counter associated with this packet.
Definition at line 200 of file legacydatapacket.cpp.
References m_packetId.
Set the source message to msg.
msg | The message to use |
Definition at line 232 of file legacydatapacket.cpp.
References m_msg.
Referenced by mrpt::hwdrivers::CIMUXSens_MT4::doProcess().
bool LegacyDataPacket::setMtwSdiData | ( | const MtwSdiData & | data, |
int32_t | index = 0 |
||
) |
Add/update strapdown integration data for the item.
data | The updated data |
index | The index of the item of which the data should be returned. |
Definition at line 1448 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_mtwSdiData, PacketInfo::m_size, PacketInfo::m_wAidingData, PacketInfo::m_wBaroMeter, PacketInfo::m_wClientId, PacketInfo::m_wCurrentBias, PacketInfo::m_wFirstFrameNumber, PacketInfo::m_wLastFrameNumber, PacketInfo::m_wMagnetoMeter, PacketInfo::m_wOrientationIncrement, PacketInfo::m_wRssi, PacketInfo::m_wTimeSync, PacketInfo::m_wVelocityIncrement, XS_DATA_ITEM_NOT_AVAILABLE, and XsMath_doubleToLong().
Add/update Euler Orientation data for the item.
Definition at line 1901 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, dataSize(), getFPValueSize(), ISDOUBLE, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_oriEul, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
Add/update Matrix Orientation data for the item.
Definition at line 1955 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, dataSize(), getFPValueSize(), ISDOUBLE, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_oriMat, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
bool LegacyDataPacket::setOrientationQuaternion | ( | const XsQuaternion & | data, |
int32_t | index = 0 |
||
) |
Add/update Quaternion Orientation data for the item.
Definition at line 1843 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, dataSize(), getFPValueSize(), ISDOUBLE, m_fixedData, PacketFixedData::m_formatList, PacketFixedData::m_infoList, m_msg, PacketInfo::m_oriQuat, XsDataFormat::m_outputSettings, PacketInfo::m_size, XOS_Dataformat_Double, XOS_Dataformat_Mask, and XS_DATA_ITEM_NOT_AVAILABLE.
Add/update Sample Counter for all items.
Definition at line 2240 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_sc, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
Add/update Position Lat Lon Alt for the item.
Definition at line 2088 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, dataSize(), getFPValueSize(), ISDOUBLE, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_posLLA, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
bool LegacyDataPacket::setPressure | ( | const XsPressure & | data, |
int32_t | index = 0 |
||
) |
Add/update pressure data for the item.
Definition at line 1343 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketInfo::m_gpsPvtData, PacketInfo::m_gpsPvtPressure, PacketInfo::m_gpsPvtPressureAge, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
bool LegacyDataPacket::setRawAcceleration | ( | const XsUShortVector & | vec, |
int32_t | index = 0 |
||
) |
Add/update Raw Accelerometer data for the item.
Definition at line 970 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_rawAcc, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
Add/update Raw Data for the item.
Definition at line 1139 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_rawAcc, PacketInfo::m_rawData, PacketInfo::m_rawGyr, PacketInfo::m_rawMag, PacketInfo::m_rawTemp, PacketInfo::m_size, rawTemperatureChannelCount(), XS_DATA_ITEM_NOT_AVAILABLE, and XS_MAX_TEMPERATURE_CHANNELS.
bool LegacyDataPacket::setRawGyroscopeData | ( | const XsUShortVector & | vec, |
int32_t | index = 0 |
||
) |
Add/update Raw Gyroscope data for the item.
Definition at line 1007 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_rawGyr, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
bool LegacyDataPacket::setRawMagneticField | ( | const XsUShortVector & | vec, |
int32_t | index = 0 |
||
) |
Add/update Raw Magnetometer data for the item.
Definition at line 1044 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_rawMag, PacketInfo::m_size, and XS_DATA_ITEM_NOT_AVAILABLE.
Add/update Raw Temperature data for the item.
Definition at line 1080 of file legacydatapacket.cpp.
References dataSize(), m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_rawTemp, PacketInfo::m_size, rawTemperatureChannelCount(), XS_DATA_ITEM_NOT_AVAILABLE, and XS_MAX_TEMPERATURE_CHANNELS.
void LegacyDataPacket::setRtc | ( | XsTimeStamp | rtc | ) |
Set the Real Time Clock value to realtimeclock.
Definition at line 183 of file legacydatapacket.cpp.
References m_rtc.
Add/update Status information for the item.
Definition at line 2202 of file legacydatapacket.cpp.
References dataSize(), PacketInfo::m_detailedStatus, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, PacketInfo::m_status, and XS_DATA_ITEM_NOT_AVAILABLE.
bool LegacyDataPacket::setTemperature | ( | const double & | temp, |
int32_t | index = 0 , |
||
int | channel = 0 |
||
) |
Add/update Calibrated Accelerometer data for the item.
Definition at line 1538 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, dataSize(), getFPValueSize(), ISDOUBLE, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, PacketInfo::m_temp, temperatureChannelCount(), XS_DATA_ITEM_NOT_AVAILABLE, and XS_MAX_TEMPERATURE_CHANNELS.
void LegacyDataPacket::setTimeOfArrival | ( | XsTimeStamp | timeOfArrival | ) |
Set the Time Of Arrival value to timeofarrival.
Definition at line 173 of file legacydatapacket.cpp.
References m_toa.
bool LegacyDataPacket::setTriggerIndication | ( | int | channelID, |
const XsTimeStamp & | t | ||
) |
Add/update trigger indication time for the item to the given line.
Definition at line 2404 of file legacydatapacket.cpp.
References m_triggerIn1, and m_triggerIn2.
Add/update UTC Time for all items.
Definition at line 2285 of file legacydatapacket.cpp.
References dataSize(), for(), m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, PacketInfo::m_utcDay, PacketInfo::m_utcHour, PacketInfo::m_utcMinute, PacketInfo::m_utcMonth, PacketInfo::m_utcNano, PacketInfo::m_utcSecond, PacketInfo::m_utcTime, PacketInfo::m_utcValid, PacketInfo::m_utcYear, and XS_DATA_ITEM_NOT_AVAILABLE.
Add/update Velocity for the item.
Definition at line 2134 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, dataSize(), getFPValueSize(), ISDOUBLE, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_size, PacketInfo::m_velNEDorNWU, and XS_DATA_ITEM_NOT_AVAILABLE.
void LegacyDataPacket::setXbusSystem | ( | bool | xbus, |
bool | convert = false |
||
) |
Sets the xbus flag.
The xbus flag determines where the packet counter is stored in the message. Setting this value incorrectly can lead to corrupted data reads.
xbus | The desired setting |
convert | When set to true, the sample counter will be moved from its old place to the new place. |
Definition at line 400 of file legacydatapacket.cpp.
References m_fixedData, m_msg, PacketFixedData::m_xm, packetCounter(), and updateInfoList().
Referenced by mrpt::hwdrivers::CIMUXSens_MT4::doProcess().
Return the Status component of a data item.
index | The index of the item of which the data should be returned. | |
[out] | outIsDetailed | pointer to boolean. After call, the boolean is true if the status is detailed |
Definition at line 2163 of file legacydatapacket.cpp.
References containsStatus(), PacketInfo::m_detailedStatus, m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_status, and XS_DATA_ITEM_NOT_AVAILABLE.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
double LegacyDataPacket::temperature | ( | int32_t | index = 0 , |
int | channel = 0 |
||
) | const |
Return the Temperature component of a data item.
index | The index of the item of which the data should be returned. |
channel | The Temperature channel to return |
Definition at line 1520 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsTemperature(), m_fixedData, PacketFixedData::m_infoList, m_msg, and PacketInfo::m_temp.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
int LegacyDataPacket::temperatureChannelCount | ( | int32_t | index = 0 | ) | const |
Returns the number of temperature channels.
Definition at line 1569 of file legacydatapacket.cpp.
References m_fixedData, PacketFixedData::m_infoList, PacketInfo::m_temp, XS_DATA_ITEM_NOT_AVAILABLE, and XS_MAX_TEMPERATURE_CHANNELS.
Referenced by setTemperature().
XsTimeStamp LegacyDataPacket::timeOfArrival | ( | void | ) | const |
Returns the Time Of Arrival value as stored in the object.
Definition at line 170 of file legacydatapacket.cpp.
References m_toa.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
XsTimeStamp LegacyDataPacket::triggerIndication | ( | int | channelID | ) | const |
Return the synhcronization time recorded by the station.
channelID | The synchronization channel number, where the output signal is connected. |
Definition at line 2372 of file legacydatapacket.cpp.
References m_triggerIn1, and m_triggerIn2.
void LegacyDataPacket::updateInfoList | ( | ) |
Update the internal info list by analyzing the known XsDataFormat for each device.
Definition at line 485 of file legacydatapacket.cpp.
References getFPValueSize(), PacketInfo::m_acc_g, PacketInfo::m_analogIn1, PacketInfo::m_analogIn2, PacketInfo::m_calAcc, PacketInfo::m_calData, PacketInfo::m_calGyr, PacketInfo::m_calMag, PacketInfo::m_detailedStatus, PacketInfo::m_doubleBoundary, m_fixedData, PacketFixedData::m_formatList, PacketInfo::m_gpsPvtData, PacketInfo::m_gpsPvtGpsAge, PacketInfo::m_gpsPvtGpsData, PacketInfo::m_gpsPvtHacc, PacketInfo::m_gpsPvtHeight, PacketInfo::m_gpsPvtItow, PacketInfo::m_gpsPvtLatitude, PacketInfo::m_gpsPvtLongitude, PacketInfo::m_gpsPvtPressure, PacketInfo::m_gpsPvtPressureAge, PacketInfo::m_gpsPvtSacc, PacketInfo::m_gpsPvtVacc, PacketInfo::m_gpsPvtVeld, PacketInfo::m_gpsPvtVele, PacketInfo::m_gpsPvtVeln, PacketFixedData::m_infoList, PacketFixedData::m_itemCount, PacketInfo::m_mtwSdiData, PacketInfo::m_offset, PacketInfo::m_oriEul, PacketInfo::m_oriMat, PacketInfo::m_oriQuat, XsDataFormat::m_outputMode, XsDataFormat::m_outputSettings, PacketInfo::m_posLLA, PacketInfo::m_rawAcc, PacketInfo::m_rawData, PacketInfo::m_rawGyr, PacketInfo::m_rawMag, PacketInfo::m_rawTemp, PacketInfo::m_sc, PacketInfo::m_size, PacketInfo::m_status, PacketInfo::m_temp, PacketInfo::m_utcDay, PacketInfo::m_utcHour, PacketInfo::m_utcMinute, PacketInfo::m_utcMonth, PacketInfo::m_utcNano, PacketInfo::m_utcSecond, PacketInfo::m_utcTime, PacketInfo::m_utcValid, PacketInfo::m_utcYear, PacketInfo::m_velNEDorNWU, PacketInfo::m_wAidingData, PacketInfo::m_wBaroMeter, PacketInfo::m_wClientId, PacketInfo::m_wCurrentBias, PacketInfo::m_wFirstFrameNumber, PacketInfo::m_wLastFrameNumber, PacketInfo::m_wMagnetoMeter, PacketInfo::m_wOrientationIncrement, PacketInfo::m_wRssi, PacketInfo::m_wTimeSync, PacketInfo::m_wVelocityIncrement, PacketFixedData::m_xm, XOM_Auxiliary, XOM_Calibrated, XOM_GpsPvt_Pressure, XOM_Orientation, XOM_Position, XOM_Raw, XOM_Sdi, XOM_Status, XOM_Temperature, XOM_Velocity, XOS_AuxiliaryMode_Ain1_Mask, XOS_AuxiliaryMode_Ain2_Mask, XOS_CalibratedMode_Acc_Mask, XOS_CalibratedMode_AccGyrMag_Mask, XOS_CalibratedMode_Gyr_Mask, XOS_CalibratedMode_Mag_Mask, XOS_ExtendedTemperature_Mask, XOS_NoGpsInGpsPvt, XOS_OrientationMode_Euler, XOS_OrientationMode_Mask, XOS_OrientationMode_Matrix, XOS_OrientationMode_Quaternion, XOS_PositionMode_Lla_Wgs84, XOS_PositionMode_Mask, XOS_Status_Detailed, XOS_Timestamp_PacketCounter, XOS_Timestamp_SampleUtc, XOS_VelocityMode_Mask, XOS_VelocityMode_Ms_Xyz, XS_DATA_ITEM_NOT_AVAILABLE, XS_EXTRA_TEMPERATURE_CHANNELS, and XS_MAX_TEMPERATURE_CHANNELS.
Referenced by setDataFormat(), and setXbusSystem().
Return the UTC Time component of the packet.
index | The index of the item of which the data should be returned. (ignored) |
Definition at line 2257 of file legacydatapacket.cpp.
References containsUtcTime(), for(), m_fixedData, PacketFixedData::m_infoList, m_msg, PacketInfo::m_utcMonth, PacketInfo::m_utcNano, and PacketInfo::m_utcYear.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
Return the Velocity component of a data item.
index | The index of the item of which the data should be returned. |
Definition at line 2115 of file legacydatapacket.cpp.
References CHECKIFDOUBLE, containsVelocity(), m_fixedData, PacketFixedData::m_infoList, m_msg, and PacketInfo::m_velNEDorNWU.
Referenced by XsDataPacket_assignFromXsLegacyDataPacket().
|
private |
Fixed packet data.
Definition at line 334 of file legacydatapacket.h.
Referenced by analogIn1Data(), analogIn2Data(), calibratedAcceleration(), calibratedData(), calibratedGyroscopeData(), calibratedMagneticField(), containsAnalogIn1Data(), containsAnalogIn2Data(), containsCalibratedAcceleration(), containsCalibratedData(), containsCalibratedGyroscopeData(), containsCalibratedMagneticField(), containsDetailedStatus(), containsFreeAcceleration(), containsGpsPvtData(), containsMtwSdiData(), containsOrientation(), containsOrientationEuler(), containsOrientationMatrix(), containsOrientationQuaternion(), containsPacketCounter(), containsPositionLLA(), containsPressure(), containsRawAcceleration(), containsRawData(), containsRawGyroscopeData(), containsRawMagneticField(), containsRawTemperature(), containsStatus(), containsTemperature(), containsUtcTime(), containsVelocity(), dataFormat(), dataSize(), deviceId(), findDeviceId(), fixedData(), frameCounter(), freeAcceleration(), getFPValueSize(), gpsPvtData(), isXbusSystem(), itemCount(), LegacyDataPacket(), mtwSdiData(), operator=(), orientationEuler(), orientationMatrix(), orientationQuaternion(), originalMessage(), packetCounter(), packetInfo(), positionLLA(), pressure(), rawAcceleration(), rawData(), rawGyroscopeData(), rawMagneticField(), rawTemperature(), rawTemperatureChannelCount(), setAnalogIn1Data(), setAnalogIn2Data(), setCalibratedAcceleration(), setCalibratedData(), setCalibratedGyroscopeData(), setCalibratedMagneticField(), setDataFormat(), setDeviceId(), setFreeAcceleration(), setGpsPvtData(), setItemCount(), setMtwSdiData(), setOrientationEuler(), setOrientationMatrix(), setOrientationQuaternion(), setPacketCounter(), setPositionLLA(), setPressure(), setRawAcceleration(), setRawData(), setRawGyroscopeData(), setRawMagneticField(), setRawTemperature(), setStatus(), setTemperature(), setUtcTime(), setVelocity(), setXbusSystem(), status(), temperature(), temperatureChannelCount(), updateInfoList(), utcTime(), velocity(), and ~LegacyDataPacket().
|
mutableprivate |
Last found deviceId, speeds up searches.
Definition at line 336 of file legacydatapacket.h.
Referenced by findDeviceId(), and operator=().
|
mutableprivate |
Index of last found deviceId, speeds up searches.
Definition at line 338 of file legacydatapacket.h.
Referenced by findDeviceId(), and operator=().
|
private |
The message.
Definition at line 340 of file legacydatapacket.h.
Referenced by analogIn1Data(), analogIn2Data(), calibratedAcceleration(), calibratedData(), calibratedGyroscopeData(), calibratedMagneticField(), frameCounter(), freeAcceleration(), gpsPvtData(), message(), mtwSdiData(), operator=(), orientationEuler(), orientationMatrix(), orientationQuaternion(), originalMessage(), packetCounter(), positionLLA(), pressure(), rawAcceleration(), rawData(), rawGyroscopeData(), rawMagneticField(), rawTemperature(), setAnalogIn1Data(), setAnalogIn2Data(), setCalibratedAcceleration(), setCalibratedData(), setCalibratedGyroscopeData(), setCalibratedMagneticField(), setFreeAcceleration(), setGpsPvtData(), setMessage(), setMtwSdiData(), setOrientationEuler(), setOrientationMatrix(), setOrientationQuaternion(), setPacketCounter(), setPositionLLA(), setPressure(), setRawAcceleration(), setRawData(), setRawGyroscopeData(), setRawMagneticField(), setRawTemperature(), setStatus(), setTemperature(), setUtcTime(), setVelocity(), setXbusSystem(), status(), temperature(), utcTime(), and velocity().
|
private |
64 bit sample counter
Definition at line 346 of file legacydatapacket.h.
Referenced by largePacketCounter(), operator=(), and setLargePacketCounter().
|
private |
Sample time in ms, based on the sample counter.
Definition at line 342 of file legacydatapacket.h.
Referenced by operator=(), rtc(), and setRtc().
|
private |
Time of arrival.
Definition at line 344 of file legacydatapacket.h.
Referenced by operator=(), setTimeOfArrival(), and timeOfArrival().
|
private |
Trigger indication on line 1.
Definition at line 348 of file legacydatapacket.h.
Referenced by containsTriggerIndication(), operator=(), setTriggerIndication(), and triggerIndication().
|
private |
Trigger indication on line 2.
Definition at line 350 of file legacydatapacket.h.
Referenced by containsTriggerIndication(), operator=(), setTriggerIndication(), and triggerIndication().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |