Main MRPT website
>
C++ reference for MRPT 1.5.9
xSens_MT4
xstypes
include
xsens
xsdataidentifier.h
Go to the documentation of this file.
1
/* +---------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+---------------------------------------------------------------------------+ */
9
#ifndef XSDATAIDENTIFIER_H
10
#define XSDATAIDENTIFIER_H
11
12
//////////////////////////////////////////////////////////////////////////////////////////
13
/*! \addtogroup enums Global enumerations
14
@{
15
*/
16
17
/*! \enum XsDataIdentifier
18
\brief Defines the data identifiers
19
20
\internal
21
IMPORTANT! How to add new TYPE values:
22
Use the bit reverse of 1, 2, 3 .. etc..
23
This way we have the possibility to play with the border between TYPE and FORMAT at a later stage
24
so\n
25
0 = 0b000000..00 = 0x0000\n
26
1 = 0b100000..00 = 0x8000\n
27
2 = 0b010000..00 = 0x4000\n
28
3 = 0b110000..00 = 0xC000\n
29
4 = 0b001000..00 = 0x2000\n
30
etc\n
31
8 = 0b000100..00 = 0x1000
32
33
So the TYPE grows from left to right
34
the FORMAT grows from right to left
35
36
Data that is output in float, fixedpoint or double (etc...) a sub format range is used (currently the lowest 4 bits).
37
*/
38
enum
XsDataIdentifier
39
{
40
XDI_None
= 0x0000,
41
XDI_TypeMask
= 0xFE00,
42
XDI_FullTypeMask
= 0xFFF0,
43
XDI_FullMask
= 0xFFFF,
44
XDI_FormatMask
= 0x01FF,
45
XDI_DataFormatMask
= 0x000F,
46
47
XDI_SubFormatMask
= 0x0003,
//determines, float, fp12.20, fp16.32, double output... (where applicable)
48
XDI_SubFormatFloat
= 0x0000,
49
XDI_SubFormatFp1220
= 0x0001,
50
XDI_SubFormatFp1632
= 0x0002,
51
XDI_SubFormatDouble
= 0x0003,
52
53
XDI_TemperatureGroup
= 0x0800,
54
XDI_Temperature
= 0x0810,
55
56
XDI_TimestampGroup
= 0x1000,
57
XDI_UtcTime
= 0x1010,
58
XDI_PacketCounter
= 0x1020,
59
XDI_Itow
= 0x1030,
60
XDI_GpsAge
= 0x1040,
61
XDI_PressureAge
= 0x1050,
62
XDI_SampleTimeFine
= 0x1060,
63
XDI_SampleTimeCoarse
= 0x1070,
64
XDI_FrameRange
= 0x1080,
// add for MTw (if needed)
65
XDI_PacketCounter8
= 0x1090,
66
XDI_SampleTime64
= 0x10A0,
67
68
XDI_OrientationGroup
= 0x2000,
69
XDI_CoordSysMask
= 0x000C,
70
XDI_CoordSysEnu
= 0x0000,
71
XDI_CoordSysNed
= 0x0004,
72
XDI_CoordSysNwu
= 0x0008,
73
XDI_Quaternion
= 0x2010,
74
XDI_RotationMatrix
= 0x2020,
75
XDI_EulerAngles
= 0x2030,
76
77
XDI_PressureGroup
= 0x3000,
78
XDI_BaroPressure
= 0x3010,
79
80
XDI_AccelerationGroup
= 0x4000,
81
XDI_DeltaV
= 0x4010,
82
XDI_Acceleration
= 0x4020,
83
XDI_FreeAcceleration
= 0x4030,
84
#ifdef NOT_FOR_PUBLIC_RELEASE
85
//XDI_TransposedAcceleration = 0x4040,
86
#endif //NOT_FOR_PUBLIC_RELEASE
87
88
XDI_PositionGroup
= 0x5000,
89
XDI_AltitudeMsl
= 0x5010,
90
XDI_AltitudeEllipsoid
= 0x5020,
91
XDI_PositionEcef
= 0x5030,
92
XDI_LatLon
= 0x5040,
93
94
XDI_AngularVelocityGroup
= 0x8000,
95
XDI_RateOfTurn
= 0x8020,
96
XDI_DeltaQ
= 0x8030,
97
98
XDI_GpsGroup
= 0x8800,
99
XDI_GpsDop
= 0x8830,
100
XDI_GpsSol
= 0x8840,
101
XDI_GpsTimeUtc
= 0x8880,
102
XDI_GpsSvInfo
= 0x88A0,
103
104
XDI_RawSensorGroup
= 0xA000,
105
XDI_RawAccGyrMagTemp
= 0xA010,
106
XDI_RawGyroTemp
= 0xA020,
107
XDI_RawAcc
= 0xA030,
108
XDI_RawGyr
= 0xA040,
109
XDI_RawMag
= 0xA050,
110
111
XDI_AnalogInGroup
= 0xB000,
112
XDI_AnalogIn1
= 0xB010,
113
XDI_AnalogIn2
= 0xB020,
114
115
XDI_MagneticGroup
= 0xC000,
116
XDI_MagneticField
= 0xC020,
117
118
XDI_VelocityGroup
= 0xD000,
119
XDI_VelocityXYZ
= 0xD010,
120
121
XDI_StatusGroup
= 0xE000,
122
XDI_StatusByte
= 0xE010,
123
XDI_StatusWord
= 0xE020,
124
XDI_Rssi
= 0xE040,
125
126
XDI_IndicationGroup
= 0x4800,
// 0100.1000 -> bit reverse = 0001.0010 -> type 18
127
XDI_TriggerIn1
= 0x4810,
128
XDI_TriggerIn2
= 0x4820,
129
130
#ifdef NOT_FOR_PUBLIC_RELEASE
131
/*
132
XDI_Accuracy = 0xF000,
133
XDI_GpsHAcc = 0xF010,
134
XDI_GpsVAcc = 0xF020,
135
XDI_GpsSAcc = 0xF030,
136
*/
137
#endif //NOT_FOR_PUBLIC_RELEASE
138
};
139
/*! @} */
140
141
typedef
enum
XsDataIdentifier
XsDataIdentifier
;
142
143
#define XDI_MAX_FREQUENCY ((uint16_t) 0xFFFF)
144
145
#ifdef __cplusplus
146
inline
XsDataIdentifier
operator | (
XsDataIdentifier
a
,
XsDataIdentifier
b
)
147
{
148
return
(
XsDataIdentifier
) ((int)
a
| (
int
)
b
);
149
}
150
151
inline
XsDataIdentifier
operator & (
XsDataIdentifier
a
,
XsDataIdentifier
b
)
152
{
153
return
(
XsDataIdentifier
) ((int)
a
& (
int
)
b
);
154
}
155
156
inline
XsDataIdentifier
operator ~
(
XsDataIdentifier
a
)
157
{
158
return
(
XsDataIdentifier
) ~((
unsigned
short)
a
);
159
}
160
#endif
161
162
#endif // file guard
XDI_TemperatureGroup
Definition:
xsdataidentifier.h:53
XDI_GpsGroup
Definition:
xsdataidentifier.h:98
XDI_UtcTime
Definition:
xsdataidentifier.h:57
XDI_AltitudeEllipsoid
Definition:
xsdataidentifier.h:90
XDI_Acceleration
Definition:
xsdataidentifier.h:82
XDI_Rssi
Definition:
xsdataidentifier.h:124
XDI_SubFormatDouble
Definition:
xsdataidentifier.h:51
XDI_StatusGroup
Definition:
xsdataidentifier.h:121
XDI_SubFormatMask
Definition:
xsdataidentifier.h:47
XDI_Temperature
Definition:
xsdataidentifier.h:54
XDI_StatusWord
Definition:
xsdataidentifier.h:123
XDI_SubFormatFp1220
Definition:
xsdataidentifier.h:49
XDI_TypeMask
Definition:
xsdataidentifier.h:41
XDI_TriggerIn2
Definition:
xsdataidentifier.h:128
XDI_FullMask
Definition:
xsdataidentifier.h:43
XDI_MagneticField
Definition:
xsdataidentifier.h:116
XDI_GpsTimeUtc
Definition:
xsdataidentifier.h:101
XDI_MagneticGroup
Definition:
xsdataidentifier.h:115
XDI_SubFormatFloat
Definition:
xsdataidentifier.h:48
XDI_IndicationGroup
Definition:
xsdataidentifier.h:126
XDI_AccelerationGroup
Definition:
xsdataidentifier.h:80
XDI_PressureGroup
Definition:
xsdataidentifier.h:77
XsDataIdentifier
XsDataIdentifier
Defines the data identifiers.
Definition:
xsdataidentifier.h:38
XDI_SampleTimeCoarse
Definition:
xsdataidentifier.h:63
XDI_RawGyr
Definition:
xsdataidentifier.h:108
XDI_GpsSol
Definition:
xsdataidentifier.h:100
XDI_DataFormatMask
Definition:
xsdataidentifier.h:45
XDI_AnalogIn2
Definition:
xsdataidentifier.h:113
XDI_VelocityGroup
Definition:
xsdataidentifier.h:118
XDI_TimestampGroup
Definition:
xsdataidentifier.h:56
XDI_RawAccGyrMagTemp
Definition:
xsdataidentifier.h:105
XDI_SampleTimeFine
Definition:
xsdataidentifier.h:62
XDI_CoordSysMask
Definition:
xsdataidentifier.h:69
XDI_CoordSysEnu
Definition:
xsdataidentifier.h:70
XDI_PositionEcef
Definition:
xsdataidentifier.h:91
XDI_DeltaQ
Definition:
xsdataidentifier.h:96
XDI_Itow
Definition:
xsdataidentifier.h:59
XDI_RotationMatrix
Definition:
xsdataidentifier.h:74
XDI_FreeAcceleration
Definition:
xsdataidentifier.h:83
XDI_EulerAngles
Definition:
xsdataidentifier.h:75
b
GLubyte GLubyte b
Definition:
glext.h:5575
XDI_CoordSysNed
Definition:
xsdataidentifier.h:71
XDI_PressureAge
Definition:
xsdataidentifier.h:61
XDI_FullTypeMask
Definition:
xsdataidentifier.h:42
XDI_SampleTime64
Definition:
xsdataidentifier.h:66
XDI_TriggerIn1
Definition:
xsdataidentifier.h:127
XDI_RawGyroTemp
Definition:
xsdataidentifier.h:106
XDI_PositionGroup
Definition:
xsdataidentifier.h:88
XDI_AltitudeMsl
Definition:
xsdataidentifier.h:89
XDI_SubFormatFp1632
Definition:
xsdataidentifier.h:50
XDI_RateOfTurn
Definition:
xsdataidentifier.h:95
XDI_RawAcc
Definition:
xsdataidentifier.h:107
XDI_AnalogInGroup
Definition:
xsdataidentifier.h:111
XDI_None
Definition:
xsdataidentifier.h:40
XDI_OrientationGroup
Definition:
xsdataidentifier.h:68
XDI_FormatMask
Definition:
xsdataidentifier.h:44
XDI_VelocityXYZ
Definition:
xsdataidentifier.h:119
XDI_PacketCounter
Definition:
xsdataidentifier.h:58
XDI_CoordSysNwu
Definition:
xsdataidentifier.h:72
XDI_GpsDop
Definition:
xsdataidentifier.h:99
XDI_PacketCounter8
Definition:
xsdataidentifier.h:65
mrpt::math::operator~
const Eigen::MatrixBase< Derived >::AdjointReturnType operator~(const Eigen::MatrixBase< Derived > &m)
Transpose operator for matrices.
Definition:
ops_matrices.h:32
XDI_LatLon
Definition:
xsdataidentifier.h:92
XDI_AnalogIn1
Definition:
xsdataidentifier.h:112
a
GLubyte GLubyte GLubyte a
Definition:
glext.h:5575
XDI_GpsAge
Definition:
xsdataidentifier.h:60
XDI_RawSensorGroup
Definition:
xsdataidentifier.h:104
XDI_BaroPressure
Definition:
xsdataidentifier.h:78
XDI_GpsSvInfo
Definition:
xsdataidentifier.h:102
XDI_RawMag
Definition:
xsdataidentifier.h:109
XDI_FrameRange
Definition:
xsdataidentifier.h:64
XDI_StatusByte
Definition:
xsdataidentifier.h:122
XDI_Quaternion
Definition:
xsdataidentifier.h:73
XDI_AngularVelocityGroup
Definition:
xsdataidentifier.h:94
XDI_DeltaV
Definition:
xsdataidentifier.h:81
Page generated by
Doxygen 1.8.14
for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020