Main MRPT website > C++ reference for MRPT 1.5.9
xsscrdata.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 XSSCRDATA_H
10 #define XSSCRDATA_H
11 
12 #include "pstdint.h"
13 #include "xsushortvector.h"
14 
15 #ifndef __cplusplus
16 #define XSSCRDATA_INITIALIZER {XSUSHORTVECTOR_INITIALIZER, XSUSHORTVECTOR_INITIALIZER, XSUSHORTVECTOR_INITIALIZER, {0, 0, 0, 0}}
17 #endif
18 
19 #define XS_EXTRA_TEMPERATURE_CHANNELS 3
20 #define XS_MAX_TEMPERATURE_CHANNELS ((XS_EXTRA_TEMPERATURE_CHANNELS) + 1)
21 
22 /*! \brief Container for raw sensor measurement data
23  \details This structure contains raw measurement data from the sensors on the device.
24  This data is unscaled, the bias has not been subtracted and no error correction has been applied.
25 */
26 struct XsScrData {
27  XsUShortVector m_acc; //!< The raw accelerometer data
28  XsUShortVector m_gyr; //!< The raw gyroscope data
29  XsUShortVector m_mag; //!< The raw magnetometer data
30  uint16_t m_temp[XS_MAX_TEMPERATURE_CHANNELS]; //!< The temperature data
31 };
32 typedef struct XsScrData XsScrData;
33 
34 #endif // file guard
unsigned __int16 uint16_t
Definition: rptypes.h:46
#define XS_MAX_TEMPERATURE_CHANNELS
Definition: xsscrdata.h:20
XsUShortVector m_mag
The raw magnetometer data.
Definition: xsscrdata.h:29
XsUShortVector m_gyr
The raw gyroscope data.
Definition: xsscrdata.h:28
A vector containing 3 short values.
XsUShortVector m_acc
The raw accelerometer data.
Definition: xsscrdata.h:27
Container for raw sensor measurement data.
Definition: xsscrdata.h:26
uint16_t m_temp[XS_MAX_TEMPERATURE_CHANNELS]
The temperature data.
Definition: xsscrdata.h:30



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