MRPT  1.9.9
xsgpspvtdata.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef XSGPSPVTDATA_H
10 #define XSGPSPVTDATA_H
11 
12 #include "pstdint.h"
13 #include "xstypesconfig.h"
14 
15 #ifdef __cplusplus
16 extern "C"
17 {
18 #else
19 #define XSGPSPVTDATA_INITIALIZER \
20  { \
21  0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255 \
22  }
23 #endif
24 
25  struct XsGpsPvtData;
26 
28  XSTYPES_DLL_API int XsGpsPvtData_empty(const struct XsGpsPvtData* thisPtr);
29 
30 #ifdef __cplusplus
31 } // extern "C"
32 #endif
33 
34 /*! \brief Data from the GPS unit of a legacy MTi-G.*/
36 {
37  /** The pressure measurement in units of 2 Pascal, only valid if
38  * m_pressureAge is not 255 */
40  /** The age of the pressure measurement in packets. When it decreases
41  * relative to the previous packet, it indicates that new data is available.
42  */
44  /** Integer time of week in ms */
46  /** Latitude in 1e-7 degrees */
48  /** Longitude in 1e-7 degrees */
50  /** Height in mm */
52  /** Velocity towards north in cm/s */
54  /** Velocity towards east in cm/s */
56  /** Velocity towards down in cm/s */
58  /** Horizontal accuracy estimate, expected error standard deviation in mm */
60  /** Vertical accuracy estimate, expected error standard deviation in mm */
62  /** Speed accuracy estimate, expected error standard deviation in cm/s */
64  /** The age of the GPS measurement in packets. When it decreases relative to
65  * the previous packet, it indicates that new data is available. */
67 
68 #ifdef __cplusplus
69  /*! \brief \copybrief XsGpsPvtData_destruct */
70  inline void clear() { XsGpsPvtData_destruct(this); }
71  /*! \brief \copybrief XsGpsPvtData_empty */
72  inline bool empty() const { return 0 != XsGpsPvtData_empty(this); }
73 #endif
74 };
75 
76 typedef struct XsGpsPvtData XsGpsPvtData;
77 
78 #endif // file guard
uint32_t m_vacc
Vertical accuracy estimate, expected error standard deviation in mm.
Definition: xsgpspvtdata.h:61
unsigned __int16 uint16_t
Definition: rptypes.h:47
int32_t m_vele
Velocity towards east in cm/s.
Definition: xsgpspvtdata.h:55
uint8_t m_pressureAge
The age of the pressure measurement in packets.
Definition: xsgpspvtdata.h:43
int32_t m_latitude
Latitude in 1e-7 degrees.
Definition: xsgpspvtdata.h:47
XSTYPES_DLL_API void XsGpsPvtData_destruct(struct XsGpsPvtData *thisPtr)
unsigned char uint8_t
Definition: rptypes.h:44
uint32_t m_sacc
Speed accuracy estimate, expected error standard deviation in cm/s.
Definition: xsgpspvtdata.h:63
uint8_t m_gpsAge
The age of the GPS measurement in packets.
Definition: xsgpspvtdata.h:66
uint32_t m_itow
Integer time of week in ms.
Definition: xsgpspvtdata.h:45
bool empty() const
Definition: ts_hash_map.h:190
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
XSTYPES_DLL_API int XsGpsPvtData_empty(const struct XsGpsPvtData *thisPtr)
int32_t m_veln
Velocity towards north in cm/s.
Definition: xsgpspvtdata.h:53
__int32 int32_t
Definition: rptypes.h:49
uint16_t m_pressure
The pressure measurement in units of 2 Pascal, only valid if m_pressureAge is not 255...
Definition: xsgpspvtdata.h:39
int32_t m_height
Height in mm.
Definition: xsgpspvtdata.h:51
int32_t m_longitude
Longitude in 1e-7 degrees.
Definition: xsgpspvtdata.h:49
uint32_t m_hacc
Horizontal accuracy estimate, expected error standard deviation in mm.
Definition: xsgpspvtdata.h:59
int32_t m_veld
Velocity towards down in cm/s.
Definition: xsgpspvtdata.h:57
unsigned __int32 uint32_t
Definition: rptypes.h:50
void clear()
Clear the contents of this container.
Definition: ts_hash_map.h:182
Data from the GPS unit of a legacy MTi-G.
Definition: xsgpspvtdata.h:35



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019