sbgEComBinaryLogImu.h
Go to the documentation of this file.
1 
20 #ifndef __SBG_ECOM_BINARY_LOG_IMU_H__
21 #define __SBG_ECOM_BINARY_LOG_IMU_H__
22 
23 #include <sbgCommon.h>
25 
26 //----------------------------------------------------------------------//
27 //- Log Inertial Data definitions -//
28 //----------------------------------------------------------------------//
29 
33 #define SBG_ECOM_IMU_COM_OK (0x00000001u << 0)
34 #define SBG_ECOM_IMU_STATUS_BIT (0x00000001u << 1)
36 #define SBG_ECOM_IMU_ACCEL_X_BIT (0x00000001u << 2)
37 #define SBG_ECOM_IMU_ACCEL_Y_BIT (0x00000001u << 3)
38 #define SBG_ECOM_IMU_ACCEL_Z_BIT (0x00000001u << 4)
40 #define SBG_ECOM_IMU_GYRO_X_BIT (0x00000001u << 5)
41 #define SBG_ECOM_IMU_GYRO_Y_BIT (0x00000001u << 6)
42 #define SBG_ECOM_IMU_GYRO_Z_BIT (0x00000001u << 7)
44 #define SBG_ECOM_IMU_ACCELS_IN_RANGE (0x00000001u << 8)
45 #define SBG_ECOM_IMU_GYROS_IN_RANGE (0x00000001u << 9)
47 //----------------------------------------------------------------------//
48 //- Log structure definitions -//
49 //----------------------------------------------------------------------//
50 
54 typedef struct _SbgLogImuData
55 {
58  float accelerometers[3];
59  float gyroscopes[3];
60  float temperature;
61  float deltaVelocity[3];
62  float deltaAngle[3];
64 
68 typedef struct _SbgLogFastImuData
69 {
72  float accelerometers[3];
73  float gyroscopes[3];
75 
76 //----------------------------------------------------------------------//
77 //- Operations -//
78 //----------------------------------------------------------------------//
79 
87 
95 
103 
111 
112 #endif
SbgErrorCode sbgEComBinaryLogWriteFastImuData(SbgStreamBuffer *pOutputStream, const SbgLogFastImuData *pInputData)
unsigned int uint32
Definition: sbgTypes.h:58
struct _SbgLogImuData SbgLogImuData
Used to read/write data from/to a memory buffer stream.
struct _SbgLogFastImuData SbgLogFastImuData
SbgErrorCode sbgEComBinaryLogParseFastImuData(SbgStreamBuffer *pInputStream, SbgLogFastImuData *pOutputData)
SbgErrorCode sbgEComBinaryLogWriteImuData(SbgStreamBuffer *pOutputStream, const SbgLogImuData *pInputData)
SbgErrorCode sbgEComBinaryLogParseImuData(SbgStreamBuffer *pInputStream, SbgLogImuData *pOutputData)
Main header file for SBG Systems common C library.
unsigned short uint16
Definition: sbgTypes.h:57
enum _SbgErrorCode SbgErrorCode


sbg_driver
Author(s):
autogenerated on Sun Jan 27 2019 03:42:20