Main MRPT website > C++ reference for MRPT 1.5.7
xsoutputsettings.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 XSOUTPUTSETTINGS_H
10 #define XSOUTPUTSETTINGS_H
11 
12 /*! \addtogroup enums Global enumerations
13  @{
14 */
15 //! Bit values for output settings
17  XOS_Timestamp_Mask = 0x00000003,
18  XOS_Timestamp_None = 0x00000000,
25  XOS_CalibratedMode_All = 0x00000000,
37  XOS_Status_Compact = 0x00000000,
38  XOS_Status_Detailed = 0x00000080,
39  XOS_Dataformat_Mask = 0x00000300,
40  XOS_Dataformat_Float = 0x00000000,
41  XOS_Dataformat_F1220 = 0x00000100,
42  XOS_Dataformat_Fp1632 = 0x00000200,
43  XOS_Dataformat_Double = 0x00000300,
44 
45  XOS_AuxiliaryMode_Mask = 0x00000C00,
48  XOS_AuxiliaryMode_Ain1 = 0x00000800,
49  XOS_AuxiliaryMode_Ain2 = 0x00000400,
50  XOS_PositionMode_Mask = 0x0001C000,
52  XOS_VelocityMode_Mask = 0x00060000,
54  XOS_GpsInGpsPvt = 0x00000000,
55  XOS_NoGpsInGpsPvt = 0x00080000,
57  XOS_Coordinates_Ned = 0x80000000
58 
59  //XOS_Uncertainty_Orient = 0x00100000
60  //XOS_Uncertainty_Pos = 0x00200000
61  //XOS_Uncertainty_Vel = 0x00400000
62  //XOS_Uncertainty_Mask = 0x00F00000
63 
64 };
65 /*! @} */
67 
68 #define XS_DEFAULT_OUTPUT_SETTINGS (XsOutputSettings)(XOS_OrientationMode_Quaternion | XOS_Timestamp_PacketCounter)
69 
70 #ifdef __cplusplus
71 /*! \brief Allow logical or of XsOutputSettings to be a valid XsOutputSettings value */
73 {
74  return (XsOutputSettings) ((unsigned long) a | (unsigned long) b);
75 }
76 
77 /*! \brief Allow logical and of XsOutputSettings to be a valid XsOutputSettings value */
79 {
80  return (XsOutputSettings) ((unsigned long) a & (unsigned long) b);
81 }
82 
83 /*! \brief Allow logical inversion of XsOutputSettings to be a valid XsOutputSettings value */
85 {
86  return (XsOutputSettings) ~((unsigned long)a);
87 }
88 
89 /*! \brief Allow &= operator on XsOutputSettings */
90 inline XsOutputSettings& operator &= (XsOutputSettings& left, XsOutputSettings const & right)
91 {
92  return left = left & right;
93 }
94 
95 /*! \brief Allow |= operator on XsOutputSettings */
96 inline XsOutputSettings& operator |= (XsOutputSettings& left, XsOutputSettings const & right)
97 {
98  return left = left | right;
99 }
100 
101 #endif
102 
103 #endif // file guard
GLubyte GLubyte b
Definition: glext.h:5575
XsOutputSettings
Bit values for output settings.
const Eigen::MatrixBase< Derived >::AdjointReturnType operator~(const Eigen::MatrixBase< Derived > &m)
Transpose operator for matrices.
Definition: ops_matrices.h:32
GLubyte GLubyte GLubyte a
Definition: glext.h:5575



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019