Go to the documentation of this file.
73 hacket->message().clear();
75 hacket->message().setBusId(
index + 1);
115 hacket->setRawGyroscopeTemperatureData(rawGyroTemperatures);
122 hacket->message().setDataShort(
124 hacket->message().setDataByte(
125 3 * hacket->getFPValueSize(di), hacket->message().getDataSize());
127 hacket->message().setDataBuffer(
129 3 * hacket->getFPValueSize(di),
133 hacket->setCalibratedMagneticField(
136 hacket->setOrientationQuaternion(
141 hacket->setOrientationEuler(
146 hacket->setOrientationMatrix(
159 bool isDetailed =
true;
170 hacket->setStatus(
status);
183 hacket->setPressure(tmp);
186 hacket->setGpsPvtData(pvt);
191 hacket->setUtcTime(time);
203 hacket->message().setDataShort(
204 XDI_DeltaQ | di, hacket->message().getDataSize());
205 hacket->message().setDataByte(
206 4 * hacket->getFPValueSize(di),
207 hacket->message().getDataSize());
209 hacket->message().setDataBuffer(
211 4 * hacket->getFPValueSize(di),
214 hacket->message().setDataShort(
215 XDI_DeltaV | di, hacket->message().getDataSize());
216 hacket->message().setDataByte(
217 3 * hacket->getFPValueSize(di),
218 hacket->message().getDataSize());
220 hacket->message().setDataBuffer(
222 3 * hacket->getFPValueSize(di),
234 hacket->setPressure(tmp);
236 hacket->setFrameRange(
239 hacket->setRssi(mtwsdi.
m_rssi);
#define XS_BID_MASTER
The bus identifier of the master device.
bool containsTemperature(int32_t index=0, int channel=0) const
Check if data item contains Temperature data.
GLenum GLsizei GLenum format
void XsDataPacket_assignFromXsLegacyDataPacket(struct XsDataPacket *thisPtr, struct LegacyDataPacket const *pack, int index)
void validatePacket(XsDataPacket *thisPtr)
unsigned __int16 uint16_t
XsTimeStamp m_toa
Time of arrival (live packets only)
Data from the GPS unit of a legacy MTi-G.
XsDeviceId deviceId(int32_t index) const
Returns the device ID of the device with the given index.
XsQuaternion orientationQuaternion(int32_t index=0) const
Return the Orientation component of a data item as a Quaternion.
uint8_t m_pressureAge
Age of pressure data in samples.
XsGpsPvtData gpsPvtData(int32_t index=0) const
Return the Gps PVT data component of a data item.
XsScrData rawData(int32_t index=0) const
Return the Raw Data component of a data item.
int64_t largePacketCounter(void) const
Return the 64-bit sample counter associated with this packet.
XsMatrix orientationMatrix(int32_t index=0) const
Return the Orientation component of a data item as an Orientation Matrix.
uint16_t m_originalMessageLength
Length of the original message payload.
uint8_t m_pressureAge
The age of the pressure measurement in packets.
uint16_t & itemCount()
The number of data items in the message.
uint32_t status(int32_t index, bool *outIsDetailed) const
Return the Status component of a data item.
int & lastFoundOffset()
Offset of last found data identifier, speeds up searches.
int rawTemperatureChannelCount(int32_t index=0) const
Returns the number of available Raw Temperature channels.
XsTimeStamp & toa()
Time of arrival (live packets only)
XsDataFormat dataFormat(int32_t index=0) const
Returns the data format of the device with the given index.
uint16_t m_itemCount
The number of data items in the message.
int8_t m_rssi
The Received Signal Strength Indication (RSSI) of the message.
bool containsUtcTime(int32_t index=0) const
Check if data item contains UTC Time.
A structure for storing UTC Time values.
double m_pressure
Pressure in Pascal.
XsDataIdentifier m_lastFoundId
Last found data identifer, speeds up searches.
XsDeviceId & deviceId()
The device Id to which the message belongs.
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.
XsDataIdentifier
Defines the data identifiers.
Contains data received from a device or read from a file.
bool containsStatus(int32_t index=0) const
Check if data item contains Status.
bool containsCalibratedAcceleration(int32_t index=0) const
Check if data item contains Calibrated Accelerometer data.
Contains offset information about data in the packet.
int m_lastFoundOffset
Offset of last found data identifier, speeds up searches.
bool containsGpsPvtData(int32_t index=0) const
Check if data item contains Gps PVT Data.
bool isXbusSystem(void) const
Returns whether the xbus flag is set or not.
XsTimeStamp & packetId()
64 bit packet id, based on, depending on availability: (1) packet counter (2) sample time (3) arrival...
A vector containing 3 short values.
uint16_t m_wOrientationIncrement
Offset of MTw SDI orientation increment data.
XsVector calibratedMagneticField(int32_t index=0) const
Return the Calibrated Magnetometer component of a data item.
uint16_t m_wVelocityIncrement
Offset of MTw SDI velocity increment data.
XsVector positionLLA(int32_t index=0) const
Return the Position Lat Lon Alt component of a data item.
bool containsCalibratedGyroscopeData(int32_t index=0) const
Check if data item contains Calibrated Gyroscope data.
Class to store strapdown integration data.
XsDeviceId m_deviceId
The ID of the device that generated the data.
uint16_t m_firstFrameNumber
The first frame number of the SDI interval.
bool containsCalibratedMagneticField(int32_t index=0) const
Check if data item contains Calibrated Magnetometer data.
PacketInfo packetInfo(int32_t index) const
Returns the packet info for the index'th device in the packet.
XsDataIdentifier & lastFoundId()
Last found data identifer, speeds up searches.
double temperature(int32_t index=0, int channel=0) const
Return the Temperature component of a data item.
uint16_t packetCounter(int32_t index=0) const
Return the Sample Counter component of the packet.
XsMessage m_legacyMsg
Optional legacy MtData message as received (for logging the received data only)
XsTimeStamp timeOfArrival(void) const
Returns the Time Of Arrival value as stored in the object.
XsMessage m_msg
The message that contains the data.
uint16_t m_calGyr
Offset of calibrated gyroscope data.
Class for managing timestamps in a unified way.
XsMessage & legacyMsg()
Optional legacy MtData message as received (for logging the received data only)
Contains an MTData XsMessage and supports functions for extracting contained data.
uint16_t m_pressure
The pressure measurement in units of 2 Pascal, only valid if m_pressureAge is not 255.
XsUtcTime utcTime(int32_t index=0) const
Return the UTC Time component of the packet.
bool containsPositionLLA(int32_t index=0) const
Check if data item contains Position Lat Lon Alt.
XsMessage message(void) const
Returns a copy of the XsMessage contained by the object, including computed and added data.
Structure for storing a single message.
MtwSdiData mtwSdiData(int32_t index=0) const
Return the strapdown integration (SDI) data component of a data item.
XsDeviceId m_deviceId
The device Id to which the message belongs.
bool containsVelocity(int32_t index=0) const
Check if data item contains Velocity.
XsVector3 m_magnetoMeter
The magnetometer values during the interval.
uint16_t m_lastFrameNumber
The last frame number of the SDI interval.
XsMessage & msg()
The message that contains the data.
XsVector calibratedAcceleration(int32_t index=0) const
Return the Calibrated Accelerometer component of a data item.
#define swapEndian32(src)
XSTYPES_DLL_API int XsDataPacket_itemOffsetExact(const XsDataPacket *thisPtr, XsDataIdentifier id)
bool containsOrientationMatrix(int32_t index=0) const
Check if data item contains Matrix Orientation data.
XsTimeStamp m_packetId
64 bit packet id, based on, depending on availability: (1) packet counter (2) sample time (3) arrival...
XsEuler orientationEuler(int32_t index=0) const
Return the Orientation component of a data item as Euler angles.
XsVector velocity(int32_t index=0) const
Return the Velocity component of a data item.
uint16_t & originalMessageLength()
Length of the original message payload.
unsigned __int32 uint32_t
bool containsOrientationQuaternion(int32_t index=0) const
Check if data item contains Quaternion Orientation data.
bool containsPacketCounter(int32_t index=0) const
Check if data item contains Sample Counter.
double m_barometer
The barometer value during the interval.
uint16_t rawTemperature(int32_t index=0, int channel=0) const
Return the Raw Temperature component of a data item.
bool containsMtwSdiData(int32_t index=0) const
Check if data item contains strapdown integration data.
XsMessage originalMessage(void) const
Returns the original message as it was received, without computed and added data (except for SDI inte...
| Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |