Main MRPT website > C++ reference for MRPT 1.9.9
xsoutputmode.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-2018, 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 XSOUTPUTMODE_H
10 #define XSOUTPUTMODE_H
11 
12 /*! \addtogroup enums Global enumerations
13  @{
14 */
15 //! Bit values for legacy output mode
17 {
18  XOM_None = 0x0000,
19  XOM_Temperature = 0x0001,
20  XOM_Calibrated = 0x0002,
21  XOM_Orientation = 0x0004,
22  XOM_Auxiliary = 0x0008,
23  XOM_Position = 0x0010,
24  XOM_Velocity = 0x0020,
25  XOM_Sdi = 0x0200,
26  XOM_Status = 0x0800,
28  XOM_Reserved = 0x2000,
29  XOM_Raw = 0x4000,
30  XOM_Mt9 = 0x8000
31 };
32 /*! @} */
34 
35 // Extended (analog) Output Modes
36 #define XS_EXTOUTPUTMODE_DISABLED 0x0000
37 #define XS_EXTOUTPUTMODE_EULER 0x0001
38 
39 #define XS_DEFAULT_OUTPUT_MODE XOM_Orientation
40 
41 #ifdef __cplusplus
42 /*! \brief Allow logical or of XsOutputMode to be a valid XsOutputMode value */
43 inline XsOutputMode operator|(XsOutputMode a, XsOutputMode b)
44 {
45  return (XsOutputMode)((unsigned short)a | (unsigned short)b);
46 }
47 
48 /*! \brief Allow logical and of XsOutputMode to be a valid XsOutputMode value */
49 inline XsOutputMode operator&(XsOutputMode a, XsOutputMode b)
50 {
51  return (XsOutputMode)((unsigned short)a & (unsigned short)b);
52 }
53 
54 /*! \brief Allow logical inversion of XsOutputMode to be a valid XsOutputMode
55  * value */
57 {
58  return (XsOutputMode) ~((unsigned short)a);
59 }
60 #endif
61 
62 #endif // XSOUTPUTMODE_H
XOM_GpsPvt_Pressure
@ XOM_GpsPvt_Pressure
Definition: xsoutputmode.h:27
XOM_Reserved
@ XOM_Reserved
Definition: xsoutputmode.h:28
XOM_None
@ XOM_None
Definition: xsoutputmode.h:18
XOM_Sdi
@ XOM_Sdi
Definition: xsoutputmode.h:25
XsOutputMode
XsOutputMode
Bit values for legacy output mode.
Definition: xsoutputmode.h:16
XOM_Temperature
@ XOM_Temperature
Definition: xsoutputmode.h:19
XOM_Auxiliary
@ XOM_Auxiliary
Definition: xsoutputmode.h:22
b
GLubyte GLubyte b
Definition: glext.h:6279
XOM_Orientation
@ XOM_Orientation
Definition: xsoutputmode.h:21
mrpt::math::operator~
const Eigen::MatrixBase< Derived >::AdjointReturnType operator~(const Eigen::MatrixBase< Derived > &m)
Transpose operator for matrices.
Definition: ops_matrices.h:33
XOM_Position
@ XOM_Position
Definition: xsoutputmode.h:23
XOM_Raw
@ XOM_Raw
Definition: xsoutputmode.h:29
XOM_Velocity
@ XOM_Velocity
Definition: xsoutputmode.h:24
XOM_Status
@ XOM_Status
Definition: xsoutputmode.h:26
XOM_Mt9
@ XOM_Mt9
Definition: xsoutputmode.h:30
a
GLubyte GLubyte GLubyte a
Definition: glext.h:6279
XOM_Calibrated
@ XOM_Calibrated
Definition: xsoutputmode.h:20



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