sbgEComBinaryLogEkf.h
Go to the documentation of this file.
1 
20 #ifndef __SBG_ECOM_BINARY_LOG_EKF_H__
21 #define __SBG_ECOM_BINARY_LOG_EKF_H__
22 
23 #include <sbgCommon.h>
25 
26 //----------------------------------------------------------------------//
27 //- Solution status definitions -//
28 //----------------------------------------------------------------------//
29 
33 #define SBG_ECOM_SOLUTION_MODE_SHIFT (0u)
34 #define SBG_ECOM_SOLUTION_MODE_MASK (0x0000000Fu)
39 #define SBG_ECOM_SOL_ATTITUDE_VALID (0x00000001u << 4)
40 #define SBG_ECOM_SOL_HEADING_VALID (0x00000001u << 5)
41 #define SBG_ECOM_SOL_VELOCITY_VALID (0x00000001u << 6)
42 #define SBG_ECOM_SOL_POSITION_VALID (0x00000001u << 7)
43 #define SBG_ECOM_SOL_VERT_REF_USED (0x00000001u << 8)
44 #define SBG_ECOM_SOL_MAG_REF_USED (0x00000001u << 9)
45 #define SBG_ECOM_SOL_GPS1_VEL_USED (0x00000001u << 10)
46 #define SBG_ECOM_SOL_GPS1_POS_USED (0x00000001u << 11)
47 #define SBG_ECOM_SOL_GPS1_HDT_USED (0x00000001u << 13)
48 #define SBG_ECOM_SOL_GPS2_VEL_USED (0x00000001u << 14)
49 #define SBG_ECOM_SOL_GPS2_POS_USED (0x00000001u << 15)
50 #define SBG_ECOM_SOL_GPS2_HDT_USED (0x00000001u << 17)
51 #define SBG_ECOM_SOL_ODO_USED (0x00000001u << 18)
52 #define SBG_ECOM_SOL_DVL_BT_USED (0x00000001u << 19)
53 #define SBG_ECOM_SOL_DVL_WT_USED (0x00000001u << 20)
54 #define SBG_ECOM_SOL_USER_POS_USED (0x00000001u << 21)
55 #define SBG_ECOM_SOL_USER_VEL_USED (0x00000001u << 22)
56 #define SBG_ECOM_SOL_USER_HEADING_USED (0x00000001u << 23)
57 #define SBG_ECOM_SOL_USBL_USED (0x00000001u << 24)
58 #define SBG_ECOM_SOL_PRESSURE_USED (0x00000001u << 25)
59 #define SBG_ECOM_SOL_ZUPT_USED (0x00000001u << 26)
60 #define SBG_ECOM_SOL_ALIGN_VALID (0x00000001u << 27)
65 typedef enum _SbgEComSolutionMode
66 {
73 
74 //----------------------------------------------------------------------//
75 //- Solution status helpers methods -//
76 //----------------------------------------------------------------------//
77 
84 {
86 }
87 
95 {
96  //
97  // Create the combined status field
98  //
99  return ((((uint32)solutionMode)&SBG_ECOM_SOLUTION_MODE_MASK) << SBG_ECOM_SOLUTION_MODE_SHIFT) | masks;
100 }
101 
102 
103 //----------------------------------------------------------------------//
104 //- Log structure definitions -//
105 //----------------------------------------------------------------------//
106 
110 typedef struct _SbgLogEkfEulerData
111 {
113  float euler[3];
114  float eulerStdDev[3];
117 
121 typedef struct _SbgLogEkfQuatData
122 {
124  float quaternion[4];
125  float eulerStdDev[3];
128 
132 typedef struct _SbgLogEkfNavData
133 {
135  float velocity[3];
136  float velocityStdDev[3];
137  double position[3];
139  float undulation;
140  float positionStdDev[3];
143 
144 //----------------------------------------------------------------------//
145 //- Operations -//
146 //----------------------------------------------------------------------//
147 
155 
163 
171 
179 
187 
195 
196 #endif
SbgErrorCode sbgEComBinaryLogWriteEkfEulerData(SbgStreamBuffer *pOutputStream, const SbgLogEkfEulerData *pInputData)
unsigned int uint32
Definition: sbgTypes.h:58
SbgErrorCode sbgEComBinaryLogParseEkfEulerData(SbgStreamBuffer *pInputStream, SbgLogEkfEulerData *pOutputData)
SbgErrorCode sbgEComBinaryLogWriteEkfNavData(SbgStreamBuffer *pOutputStream, const SbgLogEkfNavData *pInputData)
Used to read/write data from/to a memory buffer stream.
struct _SbgLogEkfQuatData SbgLogEkfQuatData
SbgErrorCode sbgEComBinaryLogParseEkfQuatData(SbgStreamBuffer *pInputStream, SbgLogEkfQuatData *pOutputData)
struct _SbgLogEkfEulerData SbgLogEkfEulerData
enum _SbgEComSolutionMode SbgEComSolutionMode
SBG_INLINE SbgEComSolutionMode sbgEComLogEkfGetSolutionMode(uint32 status)
#define SBG_INLINE
Definition: sbgDefines.h:94
Main header file for SBG Systems common C library.
SbgErrorCode sbgEComBinaryLogWriteEkfQuatData(SbgStreamBuffer *pOutputStream, const SbgLogEkfQuatData *pInputData)
#define SBG_ECOM_SOLUTION_MODE_MASK
SbgErrorCode sbgEComBinaryLogParseEkfNavData(SbgStreamBuffer *pInputStream, SbgLogEkfNavData *pOutputData)
struct _SbgLogEkfNavData SbgLogEkfNavData
enum _SbgErrorCode SbgErrorCode
#define SBG_ECOM_SOLUTION_MODE_SHIFT
SBG_INLINE uint32 sbgEComLogEkfBuildSolutionStatus(SbgEComSolutionMode solutionMode, uint32 masks)


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