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 {
114  uint16_t advancedStatus;
124  float meanAccuracy;
125  float stdAccuracy;
126  float maxAccuracy;
128  uint16_t numPoints;
129  uint16_t maxNumPoints;
130  float offset[3];
131  float matrix[9];
133 
134 //----------------------------------------------------------------------//
135 //- Magnetometer commands -//
136 //----------------------------------------------------------------------//
137 
144 SbgErrorCode sbgEComCmdMagSetModelId(SbgEComHandle *pHandle, uint32_t id);
145 
153 
161 
169 
177 SbgErrorCode sbgEComCmdMagSetCalibData(SbgEComHandle *pHandle, const float offset[3], const float matrix[9]);
178 
179 //----------------------------------------------------------------------//
180 //- Magnetometer onboard calibration commands -//
181 //----------------------------------------------------------------------//
182 
193 
202 
203 #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
SbgEComMagCalibQuality quality
_SbgEComMagCalibMode
Definition: sbgEComCmdMag.h:32
enum _SbgEComMagCalibMode SbgEComMagCalibMode
_SbgEComMagCalibBandwidth
Definition: sbgEComCmdMag.h:45
SbgErrorCode sbgEComCmdMagSetModelId(SbgEComHandle *pHandle, uint32_t id)
Definition: sbgEComCmdMag.c:15
enum _SbgEComMagCalibBandwidth SbgEComMagCalibBandwidth
enum _SbgEComRejectionMode SbgEComRejectionMode
enum _SbgEComMagCalibQuality SbgEComMagCalibQuality
struct _SbgEComMagCalibResults SbgEComMagCalibResults
SbgErrorCode sbgEComCmdMagComputeCalib(SbgEComHandle *pHandle, SbgEComMagCalibResults *pCalibResults)
SbgErrorCode sbgEComCmdMagSetCalibData(SbgEComHandle *pHandle, const float offset[3], const float matrix[9])
Definition: sbgEComCmdMag.c:44
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
enum _SbgErrorCode SbgErrorCode
enum _SbgEComMagModelsStdIds SbgEComMagModelsStdId


sbg_driver
Author(s): SBG Systems
autogenerated on Thu Oct 22 2020 03:47:22