103 hacket->message().clear();
105 hacket->message().setBusId(
index + 1);
144 hacket->setRawGyroscopeTemperatureData(rawGyroTemperatures);
151 hacket->message().setDataShort(
XDI_RateOfTurn | di, hacket->message().getDataSize());
152 hacket->message().setDataByte(3*hacket->getFPValueSize(di), hacket->message().getDataSize());
170 bool isDetailed =
true;
181 hacket->setStatus(
status);
193 hacket->setPressure(tmp);
196 hacket->setGpsPvtData(pvt);
201 hacket->setUtcTime(time);
213 hacket->message().setDataShort(
XDI_DeltaQ | di, hacket->message().getDataSize());
214 hacket->message().setDataByte(4*hacket->getFPValueSize(di), hacket->message().getDataSize());
218 hacket->message().setDataShort(
XDI_DeltaV | di, hacket->message().getDataSize());
219 hacket->message().setDataByte(3*hacket->getFPValueSize(di), hacket->message().getDataSize());
231 hacket->setPressure(tmp);
234 hacket->setRssi(mtwsdi.
m_rssi);
bool containsMtwSdiData(int32_t index=0) const
Check if data item contains strapdown integration data.
XsMessage & msg()
The message that contains the data.
MtwSdiData mtwSdiData(int32_t index=0) const
Return the strapdown integration (SDI) data component of a data item.
XsScrData rawData(int32_t index=0) const
Return the Raw Data component of a data item.
uint16_t rawTemperature(int32_t index=0, int channel=0) const
Return the Raw Temperature component of a data item.
bool containsOrientationMatrix(int32_t index=0) const
Check if data item contains Matrix Orientation data.
unsigned __int16 uint16_t
XsDataIdentifier & lastFoundId()
Last found data identifer, speeds up searches.
XsDeviceId & deviceId()
The device Id to which the message belongs.
XsUtcTime utcTime(int32_t index=0) const
Return the UTC Time component of the packet.
bool containsOrientationEuler(int32_t index=0) const
Check if data item contains Euler Orientation data.
bool containsRawData(int32_t index=0) const
Check if data item contains Raw Data.
XsTimeStamp & toa()
Time of arrival (live packets only)
A vector containing 3 short values.
uint16_t m_originalMessageLength
Length of the original message payload.
uint8_t m_pressureAge
The age of the pressure measurement in packets. When it decreases relative to the previous packet...
Class to store strapdown integration data.
#define swapEndian32(src)
int rawTemperatureChannelCount(int32_t index=0) const
Returns the number of available Raw Temperature channels.
uint16_t & itemCount()
The number of data items in the message.
XsEuler orientationEuler(int32_t index=0) const
Return the Orientation component of a data item as Euler angles.
XsDataIdentifier
Defines the data identifiers.
XsTimeStamp m_toa
Time of arrival (live packets only)
double temperature(int32_t index=0, int channel=0) const
Return the Temperature component of a data item.
uint8_t m_pressureAge
Age of pressure data in samples.
XsVector positionLLA(int32_t index=0) const
Return the Position Lat Lon Alt component of a data item.
XsDeviceId m_deviceId
The ID of the device that generated the data.
XsDataFormat dataFormat(int32_t index=0) const
Returns the data format of the device with the given index.
double m_pressure
Pressure in Pascal.
void validatePacket(XsDataPacket *thisPtr)
uint16_t m_firstFrameNumber
The first frame number of the SDI interval. The time of the interval is [first, last) ...
bool containsCalibratedAcceleration(int32_t index=0) const
Check if data item contains Calibrated Accelerometer data.
Contains offset information about data in the packet.
int64_t largePacketCounter(void) const
Return the 64-bit sample counter associated with this packet.
Structure for storing a single message.
uint16_t m_itemCount
The number of data items in the message.
double m_barometer
The barometer value during the interval.
XsGpsPvtData gpsPvtData(int32_t index=0) const
Return the Gps PVT data component of a data item.
bool containsCalibratedMagneticField(int32_t index=0) const
Check if data item contains Calibrated Magnetometer data.
int8_t m_rssi
The Received Signal Strength Indication (RSSI) of the message.
XsDataIdentifier m_lastFoundId
Last found data identifer, speeds up searches.
bool containsUtcTime(int32_t index=0) const
Check if data item contains UTC Time.
XsDeviceId deviceId(int32_t index) const
Returns the device ID of the device with the given index.
Class for managing timestamps in a unified way.
bool containsCalibratedGyroscopeData(int32_t index=0) const
Check if data item contains Calibrated Gyroscope data.
XsVector3 m_magnetoMeter
The magnetometer values during the interval.
int m_lastFoundOffset
Offset of last found data identifier, speeds up searches.
int & lastFoundOffset()
Offset of last found data identifier, speeds up searches.
XsQuaternion orientationQuaternion(int32_t index=0) const
Return the Orientation component of a data item as a Quaternion.
XsMessage originalMessage(void) const
Returns the original message as it was received, without computed and added data (except for SDI inte...
XsDeviceId m_deviceId
The device Id to which the message belongs.
uint16_t m_lastFrameNumber
The last frame number of the SDI interval. The time of the interval is [first, last) ...
uint16_t m_pressure
The pressure measurement in units of 2 Pascal, only valid if m_pressureAge is not 255...
bool containsPacketCounter(int32_t index=0) const
Check if data item contains Sample Counter.
Contains an MTData XsMessage and supports functions for extracting contained data.
XsMessage message(void) const
Returns a copy of the XsMessage contained by the object, including computed and added data...
A structure for storing UTC Time values.
PacketInfo packetInfo(int32_t index) const
Returns the packet info for the index'th device in the packet.
bool containsPositionLLA(int32_t index=0) const
Check if data item contains Position Lat Lon Alt.
uint16_t packetCounter(int32_t index=0) const
Return the Sample Counter component of the packet.
uint32_t status(int32_t index, bool *outIsDetailed) const
Return the Status component of a data item.
XsMessage & legacyMsg()
Optional legacy MtData message as received (for logging the received data only)
XsMessage m_msg
The message that contains the data.
bool containsOrientationQuaternion(int32_t index=0) const
Check if data item contains Quaternion Orientation data.
uint16_t & originalMessageLength()
Length of the original message payload.
Contains data received from a device or read from a file.
XsMessage m_legacyMsg
Optional legacy MtData message as received (for logging the received data only)
XsVector calibratedAcceleration(int32_t index=0) const
Return the Calibrated Accelerometer component of a data item.
GLenum GLsizei GLenum format
bool containsVelocity(int32_t index=0) const
Check if data item contains Velocity.
bool containsStatus(int32_t index=0) const
Check if data item contains Status.
XsMatrix orientationMatrix(int32_t index=0) const
Return the Orientation component of a data item as an Orientation Matrix.
unsigned __int32 uint32_t
XsVector calibratedMagneticField(int32_t index=0) const
Return the Calibrated Magnetometer component of a data item.
bool containsTemperature(int32_t index=0, int channel=0) const
Check if data item contains Temperature data.
XsTimeStamp m_packetId
64 bit packet id, based on, depending on availability: (1) packet counter (2) sample time (3) arrival...
bool containsGpsPvtData(int32_t index=0) const
Check if data item contains Gps PVT Data.
XsVector velocity(int32_t index=0) const
Return the Velocity component of a data item.
bool isXbusSystem(void) const
Returns whether the xbus flag is set or not.
void XsDataPacket_assignFromXsLegacyDataPacket(struct XsDataPacket *thisPtr, struct LegacyDataPacket const *pack, int index)
XsTimeStamp timeOfArrival(void) const
Returns the Time Of Arrival value as stored in the object.
Data from the GPS unit of a legacy MTi-G.
#define XS_BID_MASTER
The bus identifier of the master device.
XsTimeStamp & packetId()
64 bit packet id, based on, depending on availability: (1) packet counter (2) sample time (3) arrival...
XSTYPES_DLL_API int XsDataPacket_itemOffsetExact(const XsDataPacket *thisPtr, XsDataIdentifier id)