Go to the documentation of this file.
9 #ifndef LEGACYDATAPACKET_H
10 #define LEGACYDATAPACKET_H
20 #define XS_DATA_ITEM_NOT_AVAILABLE 65535
bool containsTemperature(int32_t index=0, int channel=0) const
Check if data item contains Temperature data.
const PacketFixedData * fixedData() const
Returns a const pointer to the contained fixed data, mostly used for debugging.
void setRtc(XsTimeStamp rtc)
Set the Real Time Clock value to realtimeclock.
GLenum GLsizei GLenum format
uint16_t XsMtTimeStamp
An MT timestamp (sample count)
bool setUtcTime(const XsUtcTime &data, int32_t index=0)
Add/update UTC Time for all items.
bool setOrientationQuaternion(const XsQuaternion &data, int32_t index=0)
Add/update Quaternion Orientation data for the item.
unsigned __int16 uint16_t
XsMessage m_msg
The message.
XsTimeStamp m_triggerIn1
Trigger indication on line 1.
bool containsDetailedStatus(int32_t index=0) const
Check if data item contains detailed Status information.
bool setFreeAcceleration(const XsVector &g, int32_t index=0)
Add/update XKF-3 Acc-G data for the item.
XsVector freeAcceleration(int32_t index=0) const
Return the Acc-G component of the packet.
Data from the GPS unit of a legacy MTi-G.
bool setDataFormat(const XsDataFormat &format, int32_t index=0)
Sets the data format of the device with the given index to format.
XsDeviceId deviceId(int32_t index) const
Returns the device ID of the device with the given index.
void setDeviceId(XsDeviceId deviceId, int32_t index)
Sets the device ID of the device with the given index to deviceid.
XsQuaternion orientationQuaternion(int32_t index=0) const
Return the Orientation component of a data item as a Quaternion.
XsGpsPvtData gpsPvtData(int32_t index=0) const
Return the Gps PVT data component of a data item.
XsUShortVector rawAcceleration(int32_t index=0) const
The Raw Accelerometer 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.
bool setAnalogIn1Data(const XsAnalogInData &data, int32_t index=0)
Add/update AnalogIn 1 for the item.
XsMatrix orientationMatrix(int32_t index=0) const
Return the Orientation component of a data item as an Orientation Matrix.
uint16_t getFPValueSize(int32_t index) const
Returns the floating/fixed point value size in bytes.
XsOutputMode
Bit values for legacy output mode.
XsAnalogInData analogIn1Data(int32_t index=0) const
Return the AnalogIn 1 component of a data item.
void setMessage(const XsMessage &message)
Set the source message to msg.
bool containsRawTemperature(int32_t index=0, int channel=0) const
Check if data item contains Raw Temperature data.
bool setRawAcceleration(const XsUShortVector &vec, int32_t index=0)
Add/update Raw Accelerometer data for the item.
uint32_t status(int32_t index, bool *outIsDetailed) const
Return the Status component of a data item.
int rawTemperatureChannelCount(int32_t index=0) const
Returns the number of available Raw Temperature channels.
XsDataFormat dataFormat(int32_t index=0) const
Returns the data format of the device with the given index.
bool containsCalibratedData(int32_t index=0) const
Check if data item contains Calibrated Data.
bool containsUtcTime(int32_t index=0) const
Check if data item contains UTC Time.
A structure for storing UTC Time values.
A structure containing fixed packet data, which should not change during a measurement for the same d...
const LegacyDataPacket & operator=(const LegacyDataPacket &pack)
Assignment operator, copies the contents of pack into this.
bool containsFreeAcceleration(int32_t index=0) const
Check if data item contains XKF-3 Acc-G data.
int temperatureChannelCount(int32_t index=0) const
Returns the number of temperature channels.
bool containsPressure(int32_t index=0) const
Return true if the packet contains pressure data.
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.
void setLargePacketCounter(int64_t sc)
Set the 64-bit sample counter associated with this packet.
void setXbusSystem(bool xbus, bool convert=false)
Sets the xbus flag.
uint16_t frameCounter() const
Return the frame counter (previously: sample counter) of the packet.
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.
GLsizei GLsizei GLenum GLenum const GLvoid * data
Contains offset information about data in the packet.
GLuint GLuint GLsizei count
bool containsGpsPvtData(int32_t index=0) const
Check if data item contains Gps PVT Data.
bool setTriggerIndication(int channelID, const XsTimeStamp &t)
Add/update trigger indication time for the item to the given line.
bool isXbusSystem(void) const
Returns whether the xbus flag is set or not.
A vector containing 3 short values.
uint16_t itemCount(void) const
Returns the number of devices whose data is contained in the object.
bool setCalibratedAcceleration(const XsVector &vec, int32_t index=0)
Add/update Calibrated Accelerometer data for the item.
uint16_t m_lastFoundIndex
Index of last found deviceId, speeds up searches.
bool setMtwSdiData(const MtwSdiData &data, int32_t index=0)
Add/update strapdown integration data for the item.
XsVector calibratedMagneticField(int32_t index=0) const
Return the Calibrated Magnetometer component of a data item.
bool setAnalogIn2Data(const XsAnalogInData &data, int32_t index=0)
Add/update AnalogIn 2 for the item.
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.
bool containsRawAcceleration(int32_t index=0) const
Check if data item contains Raw Accelerometer data.
bool setCalibratedGyroscopeData(const XsVector &vec, int32_t index=0)
Add/update Calibrated Gyroscope data for the item.
XsAnalogInData analogIn2Data(int32_t index=0) const
Return the AnalogIn 2 component of a data item.
bool setPacketCounter(const uint16_t counter, int32_t index=0)
Add/update Sample Counter for all items.
bool containsRawMagneticField(int32_t index=0) const
Check if data item contains Raw Magnetometer data.
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.
bool setPressure(const XsPressure &data, int32_t index=0)
Add/update pressure data for the item.
size_t XsSize
XsSize must be unsigned number!
double temperature(int32_t index=0, int channel=0) const
Return the Temperature component of a data item.
bool setGpsPvtData(const XsGpsPvtData &data, int32_t index=0)
Add/update Gps PVT Data for the item.
int32_t findDeviceId(XsDeviceId dev) const
Returns the index of the fixed data with id dev.
XsDeviceId m_lastFoundId
Last found deviceId, speeds up searches.
bool containsRawGyroscopeData(int32_t index=0) const
Check if data item contains Raw Gyroscope data.
uint16_t packetCounter(int32_t index=0) const
Return the Sample Counter component of the packet.
XsPressure pressure(int32_t index=0) const
Return the pressure data component of a data item.
XsTimeStamp m_triggerIn2
Trigger indication on line 2.
XsTimeStamp timeOfArrival(void) const
Returns the Time Of Arrival value as stored in the object.
void setItemCount(uint16_t count)
Set the number of devices whose data is contained in this object to count.
bool containsTriggerIndication(int channelID=0) const
Check if data item contains indication time on the given line.
void setTimeOfArrival(XsTimeStamp timeOfArrival)
Set the Time Of Arrival value to timeofarrival.
Class for managing timestamps in a unified way.
Contains an MTData XsMessage and supports functions for extracting contained data.
XsOutputSettings
Bit values for output settings.
XsTimeStamp rtc(void) const
Returns the Real Time Clock value as stored in the object.
bool setRawData(const XsScrData &data, int32_t index=0)
Add/update Raw Data for the item.
XsTimeStamp m_rtc
Sample time in ms, based on the sample counter.
XsVector calibratedGyroscopeData(int32_t index=0) const
Return the Calibrated Gyroscope component of a data item.
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.
bool setVelocity(const XsVector &data, int32_t index=0)
Add/update Velocity for the item.
void updateInfoList()
Update the internal info list by analyzing the known XsDataFormat for each device.
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.
bool containsOrientation(int32_t index=0) const
Check if data item contains Orientation Data of any kind.
Container for raw sensor measurement data.
PacketFixedData * m_fixedData
Fixed packet data.
bool containsAnalogIn1Data(int32_t index=0) const
Check if data item contains AnalogIn 1.
bool containsVelocity(int32_t index=0) const
Check if data item contains Velocity.
XsTimeStamp m_packetId
64 bit sample counter
bool setPositionLLA(const XsVector &data, int32_t index=0)
Add/update Position Lat Lon Alt for the item.
XsCalibratedData calibratedData(int32_t index=0) const
Return the Calibrated Data component of a data item.
XsVector calibratedAcceleration(int32_t index=0) const
Return the Calibrated Accelerometer component of a data item.
bool setRawTemperature(uint16_t temp, int32_t index=0, int channel=0)
Add/update Raw Temperature data for the item.
bool setCalibratedMagneticField(const XsVector &vec, int32_t index=0)
Add/update Calibrated Magnetometer data for the item.
bool setOrientationEuler(const XsEuler &data, int32_t index=0)
Add/update Euler Orientation data for the item.
LegacyDataPacket()
Construct a new LegacyDataPacket without data. The LegacyDataPacket will be invalid.
bool setOrientationMatrix(const XsMatrix &data, int32_t index=0)
Add/update Matrix Orientation data for the item.
bool containsOrientationMatrix(int32_t index=0) const
Check if data item contains Matrix Orientation data.
XsTimeStamp m_toa
Time of arrival.
XsEuler orientationEuler(int32_t index=0) const
Return the Orientation component of a data item as Euler angles.
bool setRawMagneticField(const XsUShortVector &vec, int32_t index=0)
Add/update Raw Magnetometer data for the item.
Data from analog inputs from sensors.
XsTimeStamp triggerIndication(int channelID) const
Return the synhcronization time recorded by the station.
XsVector velocity(int32_t index=0) const
Return the Velocity component of a data item.
~LegacyDataPacket()
Destructor.
bool setStatus(const uint32_t data, int32_t index=0)
Add/update Status information for the item.
XsSize dataSize(int32_t index=0) const
Returns the size of the data.
unsigned __int32 uint32_t
bool containsOrientationQuaternion(int32_t index=0) const
Check if data item contains Quaternion Orientation data.
bool containsAnalogIn2Data(int32_t index=0) const
Check if data item contains AnalogIn 2.
bool containsPacketCounter(int32_t index=0) const
Check if data item contains Sample Counter.
XsUShortVector rawMagneticField(int32_t index=0) const
Return the Raw Magnetometer component of a data item.
bool setTemperature(const double &temp, int32_t index=0, int channel=0)
Add/update Calibrated Accelerometer data for the item.
XsUShortVector rawGyroscopeData(int32_t index=0) const
Return the Raw Gyroscope 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 setRawGyroscopeData(const XsUShortVector &vec, int32_t index=0)
Add/update Raw Gyroscope data for the item.
bool containsMtwSdiData(int32_t index=0) const
Check if data item contains strapdown integration data.
bool setCalibratedData(const XsCalibratedData &data, int32_t index=0)
Add/update Calibrated Data for the item.
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 | |