sbgEComCmdMag.h
Go to the documentation of this file.
1 
20 #ifndef __SBG_ECOM_CMD_MAG_H__
21 #define __SBG_ECOM_CMD_MAG_H__
22 
23 #include "sbgEComCmdCommon.h"
24 
25 //----------------------------------------------------------------------//
26 //- Magnetometer definitions -//
27 //----------------------------------------------------------------------//
28 
33 {
40 
41 
46 {
51 
56 {
62 
67 {
74 
78 #define SBG_ECOM_MAG_CALIB_NOT_ENOUGH_POINTS (0x0001u)
79 #define SBG_ECOM_MAG_CALIB_TOO_MUCH_DISTORTIONS (0x0002u)
80 #define SBG_ECOM_MAG_CALIB_X_MOTION_ISSUE (0x0004u)
81 #define SBG_ECOM_MAG_CALIB_Y_MOTION_ISSUE (0x0008u)
82 #define SBG_ECOM_MAG_CALIB_Z_MOTION_ISSUE (0x0010u)
83 #define SBG_ECOM_MAG_CALIB_ALIGNMENT_ISSUE (0x0020u)
88 typedef enum _SbgEComMagModelsStdIds
89 {
93 
94 
95 //----------------------------------------------------------------------//
96 //- Magnetometer configuration -//
97 //----------------------------------------------------------------------//
98 
103 {
106 
111 {
124  float meanAccuracy;
125  float stdAccuracy;
126  float maxAccuracy;
130  float offset[3];
131  float matrix[9];
133 
134 //----------------------------------------------------------------------//
135 //- Magnetometer commands -//
136 //----------------------------------------------------------------------//
137 
145 
153 
163 SBG_DEPRECATED(SbgErrorCode sbgEComCmdMagSetModel(SbgEComHandle *pHandle, const void *pBuffer, uint32 size));
164 
172 
180 
188 SbgErrorCode sbgEComCmdMagSetCalibData(SbgEComHandle *pHandle, const float offset[3], const float matrix[9]);
189 
190 //----------------------------------------------------------------------//
191 //- Magnetometer onboard calibration commands -//
192 //----------------------------------------------------------------------//
193 
204 
213 
214 #endif
This file groups all common definitions required by all commands.
enum _SbgEComMagCalibConfidence SbgEComMagCalibConfidence
SbgErrorCode sbgEComCmdMagSetRejection(SbgEComHandle *pHandle, const SbgEComMagRejectionConf *pRejectConf)
SbgEComMagCalibConfidence confidence
SbgErrorCode sbgEComCmdMagGetRejection(SbgEComHandle *pHandle, SbgEComMagRejectionConf *pRejectConf)
_SbgEComMagCalibQuality
Definition: sbgEComCmdMag.h:55
unsigned int uint32
Definition: sbgTypes.h:58
SbgEComMagCalibQuality quality
_SbgEComMagCalibMode
Definition: sbgEComCmdMag.h:32
enum _SbgEComMagCalibMode SbgEComMagCalibMode
SbgErrorCode sbgEComCmdMagSetModelId(SbgEComHandle *pHandle, uint32 id)
Definition: sbgEComCmdMag.c:15
_SbgEComMagCalibBandwidth
Definition: sbgEComCmdMag.h:45
enum _SbgEComMagCalibBandwidth SbgEComMagCalibBandwidth
SbgErrorCode sbgEComCmdMagSetModel(SbgEComHandle *pHandle, const void *pBuffer, uint32 size)
Definition: sbgEComCmdMag.c:46
enum _SbgEComRejectionMode SbgEComRejectionMode
enum _SbgEComMagCalibQuality SbgEComMagCalibQuality
struct _SbgEComMagCalibResults SbgEComMagCalibResults
SBG_DEPRECATED(SbgErrorCode sbgEComCmdMagSetModel(SbgEComHandle *pHandle, const void *pBuffer, uint32 size))
SbgErrorCode sbgEComCmdMagComputeCalib(SbgEComHandle *pHandle, SbgEComMagCalibResults *pCalibResults)
SbgErrorCode sbgEComCmdMagSetCalibData(SbgEComHandle *pHandle, const float offset[3], const float matrix[9])
Definition: sbgEComCmdMag.c:61
struct _SbgEComMagRejectionConf SbgEComMagRejectionConf
_SbgEComMagCalibConfidence
Definition: sbgEComCmdMag.h:66
SbgErrorCode sbgEComCmdMagStartCalib(SbgEComHandle *pHandle, SbgEComMagCalibMode mode, SbgEComMagCalibBandwidth bandwidth)
SbgEComRejectionMode magneticField
SbgErrorCode sbgEComCmdMagGetModelInfo(SbgEComHandle *pHandle, SbgEComModelInfo *pModelInfo)
Definition: sbgEComCmdMag.c:29
unsigned short uint16
Definition: sbgTypes.h:57
enum _SbgErrorCode SbgErrorCode
enum _SbgEComMagModelsStdIds SbgEComMagModelsStdId


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