MRPT
1.9.9
xsoutputsettings.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 XSOUTPUTSETTINGS_H
10
#define XSOUTPUTSETTINGS_H
11
12
/*! \addtogroup enums Global enumerations
13
@{
14
*/
15
//! Bit values for output settings
16
enum
XsOutputSettings
17
{
18
XOS_Timestamp_Mask
= 0x00000003,
19
XOS_Timestamp_None
= 0x00000000,
20
XOS_Timestamp_PacketCounter
= 0x00000001,
21
XOS_Timestamp_SampleUtc
= 0x00000002,
22
XOS_OrientationMode_Mask
= 0x0000000C,
23
XOS_OrientationMode_Quaternion
= 0x00000000,
24
XOS_OrientationMode_Euler
= 0x00000004,
25
XOS_OrientationMode_Matrix
= 0x00000008,
26
XOS_CalibratedMode_All
= 0x00000000,
27
XOS_CalibratedMode_AccGyrMag_Mask
= 0x00000070,
28
XOS_CalibratedMode_Mask
=
XOS_CalibratedMode_AccGyrMag_Mask
,
29
XOS_CalibratedMode_Acc_Mask
= 0x00000010,
30
XOS_CalibratedMode_AccOnly
= 0x00000060,
31
XOS_CalibratedMode_AccGyrOnly
= 0x00000040,
32
XOS_CalibratedMode_AccMagOnly
= 0x00000020,
33
XOS_CalibratedMode_Gyr_Mask
= 0x00000020,
34
XOS_CalibratedMode_GyrOnly
= 0x00000050,
35
XOS_CalibratedMode_GyrMagOnly
= 0x00000010,
36
XOS_CalibratedMode_Mag_Mask
= 0x00000040,
37
XOS_CalibratedMode_MagOnly
= 0x00000030,
38
XOS_Status_Compact
= 0x00000000,
39
XOS_Status_Detailed
= 0x00000080,
40
XOS_Dataformat_Mask
= 0x00000300,
41
XOS_Dataformat_Float
= 0x00000000,
42
XOS_Dataformat_F1220
= 0x00000100,
43
XOS_Dataformat_Fp1632
= 0x00000200,
44
XOS_Dataformat_Double
= 0x00000300,
45
46
XOS_AuxiliaryMode_Mask
= 0x00000C00,
47
XOS_AuxiliaryMode_Ain1_Mask
= 0x00000400,
48
XOS_AuxiliaryMode_Ain2_Mask
= 0x00000800,
49
XOS_AuxiliaryMode_Ain1
= 0x00000800,
50
XOS_AuxiliaryMode_Ain2
= 0x00000400,
51
XOS_PositionMode_Mask
= 0x0001C000,
52
XOS_PositionMode_Lla_Wgs84
= 0x00000000,
53
XOS_VelocityMode_Mask
= 0x00060000,
54
XOS_VelocityMode_Ms_Xyz
= 0x00000000,
55
XOS_GpsInGpsPvt
= 0x00000000,
56
XOS_NoGpsInGpsPvt
= 0x00080000,
57
XOS_ExtendedTemperature_Mask
= 0x01000000,
58
XOS_Coordinates_Ned
= 0x80000000
59
60
// XOS_Uncertainty_Orient = 0x00100000
61
// XOS_Uncertainty_Pos = 0x00200000
62
// XOS_Uncertainty_Vel = 0x00400000
63
// XOS_Uncertainty_Mask = 0x00F00000
64
65
};
66
/*! @} */
67
typedef
enum
XsOutputSettings
XsOutputSettings
;
68
69
#define XS_DEFAULT_OUTPUT_SETTINGS \
70
(XsOutputSettings)( \
71
XOS_OrientationMode_Quaternion | XOS_Timestamp_PacketCounter)
72
73
#ifdef __cplusplus
74
/*! \brief Allow logical or of XsOutputSettings to be a valid XsOutputSettings
75
* value */
76
inline
XsOutputSettings
operator|(
XsOutputSettings
a
,
XsOutputSettings
b
)
77
{
78
return
(
XsOutputSettings
)((
unsigned
long)
a
| (
unsigned
long
)
b
);
79
}
80
81
/*! \brief Allow logical and of XsOutputSettings to be a valid XsOutputSettings
82
* value */
83
inline
XsOutputSettings
operator&(
XsOutputSettings
a
,
XsOutputSettings
b
)
84
{
85
return
(
XsOutputSettings
)((
unsigned
long)
a
& (
unsigned
long
)
b
);
86
}
87
88
/*! \brief Allow logical inversion of XsOutputSettings to be a valid
89
* XsOutputSettings value */
90
inline
XsOutputSettings
operator~(
XsOutputSettings
a
)
91
{
92
return
(
XsOutputSettings
) ~((
unsigned
long)
a
);
93
}
94
95
/*! \brief Allow &= operator on XsOutputSettings */
96
inline
XsOutputSettings
& operator&=(
97
XsOutputSettings
& left,
XsOutputSettings
const
& right)
98
{
99
return
left = left & right;
100
}
101
102
/*! \brief Allow |= operator on XsOutputSettings */
103
inline
XsOutputSettings
& operator|=(
104
XsOutputSettings
& left,
XsOutputSettings
const
& right)
105
{
106
return
left = left | right;
107
}
108
109
#endif
110
111
#endif // file guard
XOS_Timestamp_None
Definition:
xsoutputsettings.h:19
XOS_Status_Compact
Definition:
xsoutputsettings.h:38
XOS_CalibratedMode_GyrOnly
Definition:
xsoutputsettings.h:34
XOS_PositionMode_Lla_Wgs84
Definition:
xsoutputsettings.h:52
XOS_OrientationMode_Mask
Definition:
xsoutputsettings.h:22
XOS_CalibratedMode_GyrMagOnly
Definition:
xsoutputsettings.h:35
XOS_CalibratedMode_Acc_Mask
Definition:
xsoutputsettings.h:29
XOS_Dataformat_Mask
Definition:
xsoutputsettings.h:40
XOS_Dataformat_Fp1632
Definition:
xsoutputsettings.h:43
XOS_CalibratedMode_Gyr_Mask
Definition:
xsoutputsettings.h:33
XOS_CalibratedMode_AccGyrMag_Mask
Definition:
xsoutputsettings.h:27
XOS_PositionMode_Mask
Definition:
xsoutputsettings.h:51
XOS_Dataformat_Float
Definition:
xsoutputsettings.h:41
XOS_Status_Detailed
Definition:
xsoutputsettings.h:39
XOS_Dataformat_F1220
Definition:
xsoutputsettings.h:42
XOS_CalibratedMode_AccMagOnly
Definition:
xsoutputsettings.h:32
XOS_Timestamp_PacketCounter
Definition:
xsoutputsettings.h:20
XOS_VelocityMode_Mask
Definition:
xsoutputsettings.h:53
XOS_OrientationMode_Quaternion
Definition:
xsoutputsettings.h:23
b
GLubyte GLubyte b
Definition:
glext.h:6372
XOS_AuxiliaryMode_Ain2_Mask
Definition:
xsoutputsettings.h:48
XOS_AuxiliaryMode_Ain1_Mask
Definition:
xsoutputsettings.h:47
XOS_AuxiliaryMode_Mask
Definition:
xsoutputsettings.h:46
XOS_VelocityMode_Ms_Xyz
Definition:
xsoutputsettings.h:54
XsOutputSettings
XsOutputSettings
Bit values for output settings.
Definition:
xsoutputsettings.h:16
XOS_CalibratedMode_AccGyrOnly
Definition:
xsoutputsettings.h:31
XOS_AuxiliaryMode_Ain2
Definition:
xsoutputsettings.h:50
XOS_CalibratedMode_All
Definition:
xsoutputsettings.h:26
XOS_GpsInGpsPvt
Definition:
xsoutputsettings.h:55
XOS_AuxiliaryMode_Ain1
Definition:
xsoutputsettings.h:49
XOS_Timestamp_SampleUtc
Definition:
xsoutputsettings.h:21
XOS_Dataformat_Double
Definition:
xsoutputsettings.h:44
XOS_CalibratedMode_MagOnly
Definition:
xsoutputsettings.h:37
XOS_OrientationMode_Euler
Definition:
xsoutputsettings.h:24
XOS_CalibratedMode_AccOnly
Definition:
xsoutputsettings.h:30
XOS_Coordinates_Ned
Definition:
xsoutputsettings.h:58
XOS_NoGpsInGpsPvt
Definition:
xsoutputsettings.h:56
XOS_CalibratedMode_Mag_Mask
Definition:
xsoutputsettings.h:36
a
GLubyte GLubyte GLubyte a
Definition:
glext.h:6372
XOS_ExtendedTemperature_Mask
Definition:
xsoutputsettings.h:57
XOS_OrientationMode_Matrix
Definition:
xsoutputsettings.h:25
XOS_Timestamp_Mask
Definition:
xsoutputsettings.h:18
XOS_CalibratedMode_Mask
Definition:
xsoutputsettings.h:28
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