10 #ifndef _CMTPACKET_H_2006_05_10 11 #define _CMTPACKET_H_2006_05_10 13 #ifndef _CMT_MONOLITHIC 21 #define CMT_DATA_ITEM_NOT_AVAILABLE 65535 85 void setXbus(
bool xbus,
bool convert =
false);
304 #ifdef _CMT_DLL_EXPORT 312 #endif // _CMTPACKET_H_2006_05_10
bool updateOriQuat(const CmtQuat &data, const uint16_t index=0)
Add/update Quaternion Orientation data for the item.
bool updatePositionLLA(const CmtVector &data, const uint16_t index=0)
Add/update Position Lat Lon Alt for the item.
bool updateRawTemp(uint16_t temp, const uint16_t index=0)
Add/update Raw Temperature data for the item.
bool containsCalAcc(const uint16_t index=0) const
Check if data item contains Calibrated Accelerometer data.
double getTemp(const uint16_t index=0) const
Return the Temperature component of a data item.
CmtVector getPositionLLA(const uint16_t index=0) const
Return the Position Lat Lon Alt component of a data item.
TimeStamp m_toa
Time of arrival.
unsigned __int16 uint16_t
bool containsAccG(const uint16_t index=0) const
Check if data item contains XKF-3 Acc-G data.
CmtRawData getRawData(const uint16_t index=0) const
Return the Raw Data component of a data item.
struct xsens::Packet::PacketInfo * m_infoList
bool updateAnalogIn1(const CmtAnalogInData &data, const uint16_t index=0)
Add/update AnalogIn 1 for the item.
CmtVector getAccG(const uint16_t index=0) const
Return the XKF-3 Acc-G component of the packet.
bool containsAnalogIn2(const uint16_t index=0) const
Check if data item contains AnalogIn 2.
bool containsRawAcc(const uint16_t index=0) const
Check if data item contains Raw Accelerometer data.
CmtVector getVelocity(const uint16_t index=0) const
Return the Velocity component of a data item.
T interpolate(const T &x, const VECTOR &ys, const T &x0, const T &x1)
Interpolate a data sequence "ys" ranging from "x0" to "x1" (equally spaced), to obtain the approximat...
bool updateCalData(const CmtCalData &data, const uint16_t index=0)
Add/update Calibrated Data for the item.
CmtDataFormat getDataFormat(const uint16_t index=0) const
uint16_t getRawTemp(const uint16_t index=0) const
Return the Raw Temperature component of a data item.
uint16_t m_itemCount
The number of data items in the message.
bool containsPositionLLA(const uint16_t index=0) const
Check if data item contains Position Lat Lon Alt.
uint16_t m_rawGpsPressure
uint16_t getSampleCounter(const uint16_t index=0) const
Return the Sample Counter component of the packet.
CmtRawGpsData getRawGpsData(const uint16_t index=0) const
Return the Raw GpsPrint Data component of a data item. TODO: Implement in COM interface!!! ...
bool updateRawAcc(const CmtShortVector &vec, const uint16_t index=0)
Add/update Raw Accelerometer data for the item.
bool containsCalData(const uint16_t index=0) const
Check if data item contains Calibrated Data.
bool containsRawGpsData(const uint16_t index=0) const
Check if data item contains Raw GpsPrint Data.
A structure containing MT data + timestamp and formatting information.
bool updateRawGpsData(const CmtRawGpsData &data, const uint16_t index=0)
Add/update Raw GpsPrint Data for the item.
bool containsRawTemp(const uint16_t index=0) const
Check if data item contains Raw Temperature data.
bool containsOriMatrix(const uint16_t index=0) const
Check if data item contains Matrix Orientation data.
TimeStamp m_rtc
Sample time in ms, based on the sample counter.
uint16_t m_rawGpsLatitude
CmtDataFormat * m_formatList
A list of the formats of the data items.
bool updateOriEuler(const CmtEuler &data, const uint16_t index=0)
Add/update Euler Orientation data for the item.
bool updateCalGyr(const CmtVector &vec, const uint16_t index=0)
Add/update Calibrated Gyroscope data for the item.
bool containsCalGyr(const uint16_t index=0) const
Check if data item contains Calibrated Gyroscope data.
CmtVector getCalGyr(const uint16_t index=0) const
Return the Calibrated Gyroscope component of a data item.
bool updateVelocity(const CmtVector &data, const uint16_t index=0)
Add/update Velocity for the item.
bool updateAccG(const CmtVector &g, const uint16_t index=0)
Add/update XKF-3 Acc-G data for the item.
bool containsCalMag(const uint16_t index=0) const
Check if data item contains Calibrated Magnetometer data.
CmtQuat getOriQuat(const uint16_t index=0) const
Return the Orientation component of a data item as a Quaternion.
bool updateCalAcc(const CmtVector &vec, const uint16_t index=0)
Add/update Calibrated Accelerometer data for the item.
bool m_xm
Indicates that xbus-formatting is used.
bool containsRawGyr(const uint16_t index=0) const
Check if data item contains Raw Gyroscope data.
CmtShortVector getRawAcc(const uint16_t index=0) const
Return the Raw Accelerometer component of a data item.
bool updateTemp(const double &temp, const uint16_t index=0)
Add/update Calibrated Accelerometer data for the item.
uint16_t m_rawGpsPressureAge
bool containsOriQuat(const uint16_t index=0) const
Check if data item contains Quaternion Orientation data.
bool containsTemp(const uint16_t index=0) const
Check if data item contains Temperature data.
uint64_t TimeStamp
A real-time timestamp (ms)
uint16_t getDataSize(const uint16_t index=0) const
Return the data size.
CmtMatrix getOriMatrix(const uint16_t index=0) const
Return the Orientation component of a data item as an Orientation Matrix.
Contains information about data in the packet and the format of that data.
CmtShortVector getRawGyr(const uint16_t index=0) const
Return the Raw Gyroscope component of a data item.
uint16_t getFPValueSize(const uint16_t index) const
Return the floating/fixed point value size.
bool containsRawMag(const uint16_t index=0) const
Check if data item contains Raw Magnetometer data.
bool containsVelocity(const uint16_t index=0) const
Check if data item contains Velocity.
bool setDataFormat(const CmtDataFormat &format, const uint16_t index=0)
bool updateOriMatrix(const CmtMatrix &data, const uint16_t index=0)
Add/update Matrix Orientation data for the item.
bool updateRawMag(const CmtShortVector &vec, const uint16_t index=0)
Add/update Raw Magnetometer data for the item.
bool updateSampleCounter(uint16_t counter, const uint16_t index=0)
Add/update Sample Counter for all items.
uint32_t CmtOutputMode
An output mode bit-field.
bool containsOriEuler(const uint16_t index=0) const
Check if data item contains Euler Orientation data.
bool containsAnalogIn1(const uint16_t index=0) const
Check if data item contains AnalogIn 1.
void setXbus(bool xbus, bool convert=false)
bool containsStatus(const uint16_t index=0) const
Check if data item contains Velocity.
The namespace of all Xsens software since 2006.
bool updateRawData(const CmtRawData &data, const uint16_t index=0)
Add/update Raw Data for the item.
GLenum GLsizei GLenum format
CmtVector getCalMag(const uint16_t index=0) const
Return the Calibrated Magnetometer component of a data item.
bool updateCalMag(const CmtVector &vec, const uint16_t index=0)
Add/update Calibrated Magnetometer data for the item.
Packet(uint16_t items, bool xbus)
bool updateAnalogIn2(const CmtAnalogInData &data, const uint16_t index=0)
Add/update AnalogIn 2 for the item.
bool containsSampleCounter(const uint16_t index=0) const
Check if data item contains Sample Counter.
CmtTimeStamp getRtc(const uint16_t index=0) const
Return the RTC of the packet.
CmtAnalogInData getAnalogIn2(const uint16_t index=0) const
Return the AnalogIn 2 component of a data item.
bool containsRawData(const uint16_t index=0) const
Check if data item contains Raw Data.
CmtVector getCalAcc(const uint16_t index=0) const
Return the Calibrated Accelerometer component of a data item.
uint16_t m_rawGpsLongitude
CmtAnalogInData getAnalogIn1(const uint16_t index=0) const
Return the AnalogIn 1 component of a data item.
GLsizei GLsizei GLenum GLenum const GLvoid * data
CmtCalData getCalData(const uint16_t index=0) const
Return the Calibrated Data component of a data item.
CmtShortVector getRawMag(const uint16_t index=0) const
Return the Raw Magnetometer component of a data item.
Class for storing a single message.
bool updateRawGyr(const CmtShortVector &vec, const uint16_t index=0)
Add/update Raw Gyroscope data for the item.
uint64_t CmtOutputSettings
An output settings bit-field.
void operator=(const Packet &pack)
CmtEuler getOriEuler(const uint16_t index=0) const
Return the Orientation component of a data item as Euler angles.
Message m_msg
The message.
bool updateStatus(const uint8_t data, const uint16_t index=0)
Add/update Status information for the item.
uint8_t getStatus(const uint16_t index=0) const
Return the Status component of a data item.