Go to the documentation of this file.
10 #define XSDATAPACKET_H
42 #define XSDATAPACKET_INITIALIZER \
44 XSMESSAGE_INITIALIZER, XSMESSAGE_INITIALIZER, XSDEVICEID_INITIALIZER, \
45 XDI_None, -1, 0, 0, XSTIMESTAMP_INITIALIZER, \
46 XSTIMESTAMP_INITIALIZER \
388 inline void setMessage(
const XsMessage& msg)
396 inline const XsMessage& XSNOCOMEXPORT message()
const {
return m_msg; }
401 inline XsMessage& XSNOCOMEXPORT message()
419 inline XsMessage XSNOCOMEXPORT originalMessage(
void)
const
445 inline bool containsRawAcceleration(
void)
const
464 inline bool containsRawGyroscopeData(
void)
const
483 inline bool containsRawGyroscopeTemperatureData(
void)
const
489 inline void setRawGyroscopeTemperatureData(
const XsUShortVector& vec)
502 inline bool containsRawMagneticField(
void)
const
514 inline uint16_t rawTemperature(
void)
const
520 inline bool containsRawTemperature(
void)
const
526 inline void setRawTemperature(
uint16_t temp)
539 inline bool containsRawData(
void)
const
551 inline XsVector calibratedAcceleration(
void)
const
558 inline bool containsCalibratedAcceleration(
void)
const
564 inline void setCalibratedAcceleration(
const XsVector& vec)
570 inline XsVector calibratedGyroscopeData(
void)
const
577 inline bool containsCalibratedGyroscopeData(
void)
const
583 inline void setCalibratedGyroscopeData(
const XsVector& vec)
589 inline XsVector calibratedMagneticField(
void)
const
596 inline bool containsCalibratedMagneticField(
void)
const
602 inline void setCalibratedMagneticField(
const XsVector& vec)
615 inline bool containsCalibratedData(
void)
const
632 this, &returnVal, coordinateSystem);
641 this, &returnVal, coordinateSystemOrientation());
645 inline void setOrientationQuaternion(
656 this, &returnVal, coordinateSystem);
661 inline XsEuler orientationEuler()
const
665 this, &returnVal, coordinateSystemOrientation());
669 inline void setOrientationEuler(
680 this, &returnVal, coordinateSystem);
685 inline XsMatrix orientationMatrix()
const
689 this, &returnVal, coordinateSystemOrientation());
693 inline void setOrientationMatrix(
700 inline bool containsOrientation(
void)
const
725 inline bool containsSdiData(
void)
const
739 inline bool containsStatus(
void)
const
745 inline bool containsStatusByte(
void)
const
751 inline bool containsDetailedStatus(
void)
const
769 inline uint8_t packetCounter8(
void)
const
775 inline bool containsPacketCounter8(
void)
const
781 inline void setPacketCounter8(
uint8_t counter)
787 inline uint16_t packetCounter(
void)
const
793 inline bool containsPacketCounter(
void)
const
799 inline void setPacketCounter(
uint16_t counter)
805 inline uint32_t sampleTimeFine(
void)
const
811 inline bool containsSampleTimeFine(
void)
const
817 inline void setSampleTimeFine(
uint32_t counter)
823 inline uint32_t sampleTimeCoarse(
void)
const
829 inline bool containsSampleTimeCoarse(
void)
const
835 inline void setSampleTimeCoarse(
uint32_t counter)
841 inline uint64_t sampleTime64(
void)
const
847 inline bool containsSampleTime64(
void)
const
853 inline void setSampleTime64(
uint64_t counter)
859 inline XsVector freeAcceleration(
void)
const
866 inline bool containsFreeAcceleration(
void)
const
872 inline void setFreeAcceleration(
const XsVector&
g)
878 inline double temperature(
void)
const
884 inline bool containsTemperature(
void)
const
890 inline void setTemperature(
double temp)
903 inline bool containsGpsPvtData(
void)
const
922 inline bool containsPressure(
void)
const
928 inline bool containsPressureAge(
void)
const
947 inline bool containsAnalogIn1Data(
void)
const
966 inline bool containsAnalogIn2Data(
void)
const
978 inline XsVector positionLLA(
void)
const
985 inline bool containsPositionLLA(
void)
const
997 inline XsVector latitudeLongitude(
void)
const
1004 inline bool containsLatitudeLongitude(
void)
const
1018 inline bool containsAltitude(
void)
const
1024 inline void setAltitude(
double data)
1037 inline XsVector velocity(
void)
const
1041 this, &returnVal, coordinateSystemVelocity());
1045 inline bool containsVelocity(
void)
const
1051 inline void setVelocity(
1077 inline bool containsUtcTime(
void)
const
1089 inline XsRange frameRange()
const
1096 inline bool containsFrameRange()
const
1102 inline void setFrameRange(
const XsRange&
r)
1110 inline bool containsRssi()
const
1125 inline bool containsRawGpsDop(
void)
const
1138 inline bool containsRawGpsSol(
void)
const
1151 inline bool containsRawGpsTimeUtc(
void)
const
1164 inline bool containsRawGpsSvInfo(
void)
const
1190 void setTriggerIndication(
1195 this, triggerId, &triggerIndicationData);
1220 #endif // __cplusplus
1244 #endif // file guard
XSTYPES_DLL_API int XsDataPacket_containsSdiData(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsAnalogIn2Data(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_rssi(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setOrientationQuaternion(XsDataPacket *thisPtr, const XsQuaternion *data, XsDataIdentifier coordinateSystem)
XSTYPES_DLL_API int XsDataPacket_containsAltitude(const XsDataPacket *thisPtr)
struct XsDataPacket XsDataPacket
XSTYPES_DLL_API int XsDataPacket_containsVelocity(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setTemperature(XsDataPacket *thisPtr, double temp)
XSTYPES_DLL_API XsVector * XsDataPacket_calibratedMagneticField(const XsDataPacket *thisPtr, XsVector *returnVal)
XSTYPES_DLL_API XsVector * XsDataPacket_calibratedAcceleration(const XsDataPacket *thisPtr, XsVector *returnVal)
A container for NAV-TIMEUTC data.
XSTYPES_DLL_API uint32_t XsDataPacket_sampleTimeFine(const XsDataPacket *thisPtr)
unsigned __int16 uint16_t
XSTYPES_DLL_API XsScrData * XsDataPacket_rawData(const XsDataPacket *thisPtr, XsScrData *returnVal)
XSTYPES_DLL_API void XsDataPacket_setCalibratedData(XsDataPacket *thisPtr, const XsCalibratedData *data)
XSTYPES_DLL_API XsUShortVector * XsDataPacket_rawGyroscopeData(const XsDataPacket *thisPtr, XsUShortVector *returnVal)
XsTimeStamp m_toa
Time of arrival (live packets only)
XSTYPES_DLL_API XsVector * XsDataPacket_velocity(const XsDataPacket *thisPtr, XsVector *returnVal, XsDataIdentifier coordinateSystem)
XSTYPES_DLL_API double XsDataPacket_temperature(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsUtcTime(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsUShortVector * XsDataPacket_rawMagneticField(const XsDataPacket *thisPtr, XsUShortVector *returnVal)
XSTYPES_DLL_API XsPressure * XsDataPacket_pressure(const XsDataPacket *thisPtr, XsPressure *returnVal)
XSTYPES_DLL_API XsAnalogInData * XsDataPacket_analogIn1Data(const XsDataPacket *thisPtr, XsAnalogInData *returnVal)
Data from the GPS unit of a legacy MTi-G.
XSTYPES_DLL_API int XsDataPacket_itemOffsetMasked(const XsDataPacket *thisPtr, XsDataIdentifier id, XsDataIdentifier mask)
XSTYPES_DLL_API void XsDataPacket_setPressure(XsDataPacket *thisPtr, const XsPressure *data)
XSTYPES_DLL_API void XsDataPacket_setGpsPvtData(XsDataPacket *thisPtr, const XsGpsPvtData *data)
XSTYPES_DLL_API int XsDataPacket_containsTriggerIndication(XsDataPacket const *thisPtr, XsDataIdentifier triggerId)
XSTYPES_DLL_API void XsDataPacket_setAnalogIn2Data(XsDataPacket *thisPtr, const XsAnalogInData *data)
XSTYPES_DLL_API int XsDataPacket_containsRawGpsTimeUtc(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsFreeAcceleration(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_copy(XsDataPacket *copy, XsDataPacket const *src)
XSTYPES_DLL_API int XsDataPacket_containsAnalogIn1Data(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsRawMagneticField(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsOrientation(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setSampleTimeCoarse(XsDataPacket *thisPtr, uint32_t counter)
XSTYPES_DLL_API void XsDataPacket_setStatusByte(XsDataPacket *thisPtr, uint8_t data)
uint16_t m_originalMessageLength
Length of the original message payload.
XSTYPES_DLL_API void XsDataPacket_setFreeAcceleration(XsDataPacket *thisPtr, const XsVector *g)
XSTYPES_DLL_API int XsDataPacket_containsSampleTime64(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsDataIdentifier XsDataPacket_coordinateSystemVelocity(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsDataPacket * XsDataPacket_append(XsDataPacket *thisPtr, const XsDataPacket *other)
Data for a trigger indication message.
XSTYPES_DLL_API void XsDataPacket_setOrientationEuler(XsDataPacket *thisPtr, const XsEuler *data, XsDataIdentifier coordinateSystem)
XSTYPES_DLL_API uint32_t XsDataPacket_status(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsStatusByte(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsDetailedStatus(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setVelocity(XsDataPacket *thisPtr, const XsVector *data, XsDataIdentifier coordinateSystem)
XSTYPES_DLL_API void XsDataPacket_setSdiData(XsDataPacket *thisPtr, const XsSdiData *data)
uint16_t m_itemCount
The number of data items in the message.
XSTYPES_DLL_API int XsDataPacket_containsTemperature(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setCalibratedMagneticField(XsDataPacket *thisPtr, const XsVector *vec)
XSTYPES_DLL_API int XsDataPacket_containsStatus(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsRawGpsSvInfo(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsGpsPvtData * XsDataPacket_gpsPvtData(const XsDataPacket *thisPtr, XsGpsPvtData *returnVal)
XSTYPES_DLL_API XsMessage * XsDataPacket_originalMessage(const XsDataPacket *thisPtr, XsMessage *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsCalibratedMagneticField(const XsDataPacket *thisPtr)
A structure for storing UTC Time values.
XSTYPES_DLL_API XsUShortVector * XsDataPacket_rawGyroscopeTemperatureData(const XsDataPacket *thisPtr, XsUShortVector *returnVal)
XSTYPES_DLL_API XsVector * XsDataPacket_latitudeLongitude(const XsDataPacket *thisPtr, XsVector *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsPacketCounter(const XsDataPacket *thisPtr)
XsDataIdentifier m_lastFoundId
Last found data identifer, speeds up searches.
XSTYPES_DLL_API void XsDataPacket_setPositionLLA(XsDataPacket *thisPtr, const XsVector *data)
GLdouble GLdouble GLdouble r
XSTYPES_DLL_API XsSdiData * XsDataPacket_sdiData(const XsDataPacket *thisPtr, XsSdiData *returnVal)
XSTYPES_DLL_API uint64_t XsDataPacket_sampleTime64(const XsDataPacket *thisPtr)
XsDataIdentifier
Defines the data identifiers.
XSTYPES_DLL_API XsTriggerIndicationData * XsDataPacket_triggerIndication(XsDataPacket const *thisPtr, XsDataIdentifier triggerId, XsTriggerIndicationData *returnVal)
XSTYPES_DLL_API XsQuaternion * XsDataPacket_orientationQuaternion(const XsDataPacket *thisPtr, XsQuaternion *returnVal, XsDataIdentifier coordinateSystem)
Contains data received from a device or read from a file.
XSTYPES_DLL_API void XsMessage_setMessageId(XsMessage *thisPtr, XsXbusMessageId msgId)
XSTYPES_DLL_API XsEuler * XsDataPacket_orientationEuler(const XsDataPacket *thisPtr, XsEuler *returnVal, XsDataIdentifier coordinateSystem)
GLsizei GLsizei GLenum GLenum const GLvoid * data
XSTYPES_DLL_API void XsDataPacket_setStatus(XsDataPacket *thisPtr, uint32_t data)
XSTYPES_DLL_API void XsDataPacket_setRawGyroscopeData(XsDataPacket *thisPtr, const XsUShortVector *vec)
XSTYPES_DLL_API uint16_t XsDataPacket_packetCounter(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsUtcTime * XsDataPacket_utcTime(const XsDataPacket *thisPtr, XsUtcTime *returnVal)
int m_lastFoundOffset
Offset of last found data identifier, speeds up searches.
XSTYPES_DLL_API int XsDataPacket_empty(const XsDataPacket *thisPtr)
A vector containing 3 short values.
XSTYPES_DLL_API void XsDataPacket_setFrameRange(XsDataPacket *thisPtr, const XsRange *r)
XSTYPES_DLL_API void XsDataPacket_setAnalogIn1Data(XsDataPacket *thisPtr, const XsAnalogInData *data)
XSTYPES_DLL_API int XsDataPacket_containsFrameRange(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsCalibratedAcceleration(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsCalibratedData * XsDataPacket_calibratedData(const XsDataPacket *thisPtr, XsCalibratedData *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsPositionLLA(const XsDataPacket *thisPtr)
unsigned __int64 uint64_t
XSTYPES_DLL_API double XsDataPacket_altitude(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsDataIdentifier XsDataPacket_coordinateSystemOrientation(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setRawMagneticField(XsDataPacket *thisPtr, const XsUShortVector *vec)
A container for NAV-SVINFO data.
XSTYPES_DLL_API XsDataIdentifier XsDataPacket_orientationIdentifier(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsRawGpsDop(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_swap(XsDataPacket *a, XsDataPacket *b)
XSTYPES_DLL_API int XsDataPacket_containsPacketCounter8(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsUShortVector * XsDataPacket_rawAcceleration(const XsDataPacket *thisPtr, XsUShortVector *returnVal)
XSTYPES_DLL_API void XsDataPacket_construct(XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setOrientationMatrix(XsDataPacket *thisPtr, const XsMatrix *data, XsDataIdentifier coordinateSystem)
XsMessage m_legacyMsg
Optional legacy MtData message as received (for logging the received data only)
XSTYPES_DLL_API XsRawGpsSol * XsDataPacket_rawGpsSol(const XsDataPacket *thisPtr, XsRawGpsSol *returnVal)
XsMessage m_msg
The message that contains the data.
XSTYPES_DLL_API void XsDataPacket_setSampleTimeFine(XsDataPacket *thisPtr, uint32_t counter)
XSTYPES_DLL_API void XsDataPacket_setTriggerIndication(XsDataPacket *thisPtr, XsDataIdentifier triggerId, XsTriggerIndicationData const *triggerIndicationData)
XSTYPES_DLL_API int XsDataPacket_containsRssi(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setPacketCounter8(XsDataPacket *thisPtr, uint8_t counter)
XSTYPES_DLL_API int XsDataPacket_containsPressureAge(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setAltitude(XsDataPacket *thisPtr, double data)
Class for managing timestamps in a unified way.
XSTYPES_DLL_API void XsDataPacket_destruct(XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsCalibratedData(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setRssi(XsDataPacket *thisPtr, int r)
XSTYPES_DLL_API int XsDataPacket_containsRawTemperature(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setMessage(XsDataPacket *thisPtr, const XsMessage *msg)
XSTYPES_DLL_API int XsDataPacket_containsRawData(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setRawGyroscopeTemperatureData(XsDataPacket *thisPtr, const XsUShortVector *vec)
XSTYPES_DLL_API void XsDataPacket_setLatitudeLongitude(XsDataPacket *thisPtr, const XsVector *data)
XSTYPES_DLL_API XsDataIdentifier XsDataPacket_dataFormat(const XsDataPacket *thisPtr, XsDataIdentifier id)
Structure for storing a single message.
Container for raw sensor measurement data.
XsDeviceId m_deviceId
The device Id to which the message belongs.
XSTYPES_DLL_API void XsDataPacket_setRawAcceleration(XsDataPacket *thisPtr, const XsUShortVector *vec)
XSTYPES_DLL_API void XsDataPacket_setCalibratedGyroscopeData(XsDataPacket *thisPtr, const XsVector *vec)
XSTYPES_DLL_API int XsDataPacket_containsRawGpsSol(const XsDataPacket *thisPtr)
struct XsRawGpsSol XsRawGpsSol
XSTYPES_DLL_API XsVector * XsDataPacket_positionLLA(const XsDataPacket *thisPtr, XsVector *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsSampleTimeFine(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsAnalogInData * XsDataPacket_analogIn2Data(const XsDataPacket *thisPtr, XsAnalogInData *returnVal)
XSTYPES_DLL_API XsDataIdentifier XsDataPacket_velocityIdentifier(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsVector * XsDataPacket_calibratedGyroscopeData(const XsDataPacket *thisPtr, XsVector *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsGpsPvtData(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsRawGyroscopeTemperatureData(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsLatitudeLongitude(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_itemOffsetExact(const XsDataPacket *thisPtr, XsDataIdentifier id)
XSTYPES_DLL_API XsMatrix * XsDataPacket_orientationMatrix(const XsDataPacket *thisPtr, XsMatrix *returnVal, XsDataIdentifier coordinateSystem)
XSTYPES_DLL_API uint32_t XsDataPacket_sampleTimeCoarse(const XsDataPacket *thisPtr)
XSTYPES_DLL_API void XsDataPacket_setCalibratedAcceleration(XsDataPacket *thisPtr, const XsVector *vec)
XSTYPES_DLL_API void XsDataPacket_setUtcTime(XsDataPacket *thisPtr, const XsUtcTime *data)
EIGEN_STRONG_INLINE bool empty() const
XsTimeStamp m_packetId
64 bit packet id, based on, depending on availability: (1) packet counter (2) sample time (3) arrival...
XSTYPES_DLL_API int XsDataPacket_containsPressure(const XsDataPacket *thisPtr)
XSTYPES_DLL_API uint8_t XsDataPacket_getFPValueSize(XsDataIdentifier id)
XSTYPES_DLL_API XsRange * XsDataPacket_frameRange(const XsDataPacket *thisPtr, XsRange *returnVal)
XSTYPES_DLL_API int XsDataPacket_containsRawAcceleration(const XsDataPacket *thisPtr)
XSTYPES_DLL_API XsVector * XsDataPacket_freeAcceleration(const XsDataPacket *thisPtr, XsVector *returnVal)
XSTYPES_DLL_API void XsDataPacket_setRawData(XsDataPacket *thisPtr, const XsScrData *data)
XSTYPES_DLL_API uint8_t XsDataPacket_packetCounter8(const XsDataPacket *thisPtr)
XSTYPES_DLL_API int XsDataPacket_containsCalibratedGyroscopeData(const XsDataPacket *thisPtr)
Data from analog inputs from sensors.
XSTYPES_DLL_API int XsDataPacket_itemOffsetLoose(const XsDataPacket *thisPtr, XsDataIdentifier id)
A container for NAV-DOP data.
XSTYPES_DLL_API void XsDataPacket_setSampleTime64(XsDataPacket *thisPtr, uint64_t counter)
XSTYPES_DLL_API XsRawGpsTimeUtc * XsDataPacket_rawGpsTimeUtc(const XsDataPacket *thisPtr, XsRawGpsTimeUtc *returnVal)
XSTYPES_DLL_API XsRawGpsDop * XsDataPacket_rawGpsDop(const XsDataPacket *thisPtr, XsRawGpsDop *returnVal)
XSTYPES_DLL_API void XsDataPacket_setRawTemperature(XsDataPacket *thisPtr, uint16_t temp)
XSTYPES_DLL_API int XsDataPacket_containsRawGyroscopeData(const XsDataPacket *thisPtr)
unsigned __int32 uint32_t
XSTYPES_DLL_API void XsDataPacket_setPacketCounter(XsDataPacket *thisPtr, uint16_t counter)
A container for NAV-SOL data.
XSTYPES_DLL_API XsRawGpsSvInfo * XsDataPacket_rawGpsSvInfo(const XsDataPacket *thisPtr, XsRawGpsSvInfo *returnVal)
GLubyte GLubyte GLubyte a
XSTYPES_DLL_API int XsDataPacket_containsSampleTimeCoarse(const XsDataPacket *thisPtr)
XSTYPES_DLL_API uint16_t XsDataPacket_rawTemperature(const XsDataPacket *thisPtr)
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 | |