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
XsOutputMode
Bit values for legacy output mode.
Definition: xsoutputmode.h:16
GLubyte GLubyte b
Definition: glext.h:6279
const Eigen::MatrixBase< Derived >::AdjointReturnType operator~(const Eigen::MatrixBase< Derived > &m)
Transpose operator for matrices.
Definition: ops_matrices.h:33
GLubyte GLubyte GLubyte a
Definition: glext.h:6279



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020