Main MRPT website > C++ reference for MRPT 1.5.7
xsstatusflag.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 XSSTATUSFLAG_H
10 #define XSSTATUSFLAG_H
11 
12 /*! \addtogroup enums Global enumerations
13  @{
14 */
15 /*! \brief Status flags
16  \details These flags define the function of specific bits in the status returned by
17  XsDataPacket::status()
18  \sa XsDataPacket::status()
19 */
20 
22  XSF_SelfTestOk = 0x01 //!< Is set when the self test result was ok
23  ,XSF_OrientationValid = 0x02 //!< Is set when the computed orientation is valid. The orientation may be invalid during startup or when the sensor data is clipping during violent (for the device) motion
24  ,XSF_GpsValid = 0x04 //!< Is set when the device has a GPS receiver and the receiver says that there is a GPS position fix.
25 
26  ,XSF_NoRotationMask = 0x18 //!< If all of these flags are set, the No Rotation algorithm is running
27  ,XSF_NoRotationAborted = 0x10 //!< If only this flag is set (out of the XSF_NoRotationMask) then the No Rotation algorithm was aborted
28  ,XSF_NoRotationSamplesRejected = 0x08 //!< If only this flag is set (out of the XSF_NoRotationMask) then the No Rotation algorithm is running but has rejected samples
29  ,XSF_NoRotationRunningNormally = 0x18 //!< If all these flags are set (out of the XSF_NoRotationMask) then the No Rotation algorithm is running normally
30 
31  ,XSF_ClipAccX = 0x00000100
32  ,XSF_ClipAccY = 0x00000200
33  ,XSF_ClipAccZ = 0x00000400
34  ,XSF_ClipGyrX = 0x00000800
35  ,XSF_ClipGyrY = 0x00001000
36  ,XSF_ClipGyrZ = 0x00002000
37  ,XSF_ClipMagX = 0x00004000
38  ,XSF_ClipMagY = 0x00008000
39  ,XSF_ClipMagZ = 0x00010000
40 
41  ,XSF_SyncIn = 0x00200000 //!< When set indicates a sync-in event has been triggered
42  ,XSF_SyncOut = 0x00400000 //!< When set Indicates a sync-out event has been generated
43 
44  ,XSF_FilterMode = 0x03800000 //!< Mask for the 3 bit filter mode field
45 };
46 
47 /*! \brief Status flag bit offsets
48  \details Sometimes (rarely) it is necessary to know the bit offset instead of the bit mask (ie when
49  shifting to only keep a subset of flags) for the status flags. This enumeration provides these
50  offsets.
51  \sa XsStatusFlag
52 */
58 
68 
71 
72  ,XSFO_FilterMode = 23 // bits 23 -> 23 + XSFO_FilterModeNrOfBits - 1
73  ,XSFO_FilterModeNrOfBits = 3 // note: bit 26 is reserved for future use
74 };
75 
76 /*! @} */
77 typedef enum XsStatusFlag XsStatusFlag;
79 
80 #endif // file guard
81 
82 //
83 //#define XS_STATUSFLAG_SELFTEST_OK 0x01
84 //#define XSF_OrientationValid 0x02
85 //#define XS_STATUSFLAG_GPSVALID 0x04
86 //#define XSF_NoRotationMask 0x18
87 //#define XSF_NoRotationRunningNormally 0x18
88 //#define XSF_NoRotationAborted 0x10
89 //#define XSF_NoRotationSamplesRejected 0x08
90 
91 //#define XS_STATUSFLAG_CLIP_ACC_X 0x000100
92 //#define XS_STATUSFLAG_CLIP_ACC_Y 0x000200
93 //#define XS_STATUSFLAG_CLIP_ACC_Z 0x000400
94 //#define XS_STATUSFLAG_CLIP_GYR_X 0x000800
95 //#define XS_STATUSFLAG_CLIP_GYR_Y 0x001000
96 //#define XS_STATUSFLAG_CLIP_GYR_Z 0x002000
97 //#define XS_STATUSFLAG_CLIP_MAG_X 0x004000
98 //#define XS_STATUSFLAG_CLIP_MAG_Y 0x008000
99 //#define XS_STATUSFLAG_CLIP_MAG_Z 0x010000
100 //#define XS_STATUSFLAG_CLIP_ACC_OFFSET 8
XsStatusFlagOffset
Status flag bit offsets.
Definition: xsstatusflag.h:53
XsStatusFlag
Status flags.
Definition: xsstatusflag.h:21
@ XSFO_OffsetSelfTestOk
Definition: xsstatusflag.h:54
@ XSFO_OffsetClipMagZ
Definition: xsstatusflag.h:67
@ XSFO_OffsetClipAccZ
Definition: xsstatusflag.h:61
@ XSFO_OffsetGpsValid
Definition: xsstatusflag.h:56
@ XSFO_OffsetClipGyrY
Definition: xsstatusflag.h:63
@ XSFO_OffsetClipGyrX
Definition: xsstatusflag.h:62
@ XSFO_OffsetClipAccY
Definition: xsstatusflag.h:60
@ XSFO_OffsetClipGyrZ
Definition: xsstatusflag.h:64
@ XSFO_SyncOut
Definition: xsstatusflag.h:70
@ XSFO_OffsetOrientationValid
Definition: xsstatusflag.h:55
@ XSFO_OffsetClipMagX
Definition: xsstatusflag.h:65
@ XSFO_OffsetClipAccX
Definition: xsstatusflag.h:59
@ XSFO_FilterModeNrOfBits
Definition: xsstatusflag.h:73
@ XSFO_OffsetClipMagY
Definition: xsstatusflag.h:66
@ XSFO_OffsetNoRotation
Definition: xsstatusflag.h:57
@ XSFO_FilterMode
Definition: xsstatusflag.h:72
@ XSFO_SyncIn
Definition: xsstatusflag.h:69
@ XSF_ClipMagY
Definition: xsstatusflag.h:38
@ XSF_NoRotationRunningNormally
If all these flags are set (out of the XSF_NoRotationMask) then the No Rotation algorithm is running ...
Definition: xsstatusflag.h:29
@ XSF_ClipGyrX
Definition: xsstatusflag.h:34
@ XSF_ClipAccX
Definition: xsstatusflag.h:31
@ XSF_ClipMagX
Definition: xsstatusflag.h:37
@ XSF_SyncOut
When set Indicates a sync-out event has been generated.
Definition: xsstatusflag.h:42
@ XSF_ClipGyrZ
Definition: xsstatusflag.h:36
@ XSF_ClipAccZ
Definition: xsstatusflag.h:33
@ XSF_NoRotationMask
If all of these flags are set, the No Rotation algorithm is running.
Definition: xsstatusflag.h:26
@ XSF_NoRotationAborted
If only this flag is set (out of the XSF_NoRotationMask) then the No Rotation algorithm was aborted.
Definition: xsstatusflag.h:27
@ XSF_OrientationValid
Is set when the computed orientation is valid. The orientation may be invalid during startup or when ...
Definition: xsstatusflag.h:23
@ XSF_ClipGyrY
Definition: xsstatusflag.h:35
@ XSF_ClipAccY
Definition: xsstatusflag.h:32
@ XSF_ClipMagZ
Definition: xsstatusflag.h:39
@ XSF_NoRotationSamplesRejected
If only this flag is set (out of the XSF_NoRotationMask) then the No Rotation algorithm is running bu...
Definition: xsstatusflag.h:28
@ XSF_SyncIn
When set indicates a sync-in event has been triggered.
Definition: xsstatusflag.h:41
@ XSF_GpsValid
Is set when the device has a GPS receiver and the receiver says that there is a GPS position fix.
Definition: xsstatusflag.h:24
@ XSF_SelfTestOk
Is set when the self test result was ok.
Definition: xsstatusflag.h:22
@ XSF_FilterMode
Mask for the 3 bit filter mode field.
Definition: xsstatusflag.h:44



Page generated by Doxygen 1.9.1 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at mar 26 may 2026 13:12:03 CEST