Functions
sbgEComCmdMag.c File Reference
#include "sbgEComCmdMag.h"
#include <streamBuffer/sbgStreamBuffer.h>
#include "transfer/sbgEComTransfer.h"
Include dependency graph for sbgEComCmdMag.c:

Go to the source code of this file.

Functions

SbgErrorCode sbgEComCmdMagComputeCalib (SbgEComHandle *pHandle, SbgEComMagCalibResults *pCalibResults)
 
SbgErrorCode sbgEComCmdMagGetModelInfo (SbgEComHandle *pHandle, SbgEComModelInfo *pModelInfo)
 
SbgErrorCode sbgEComCmdMagGetRejection (SbgEComHandle *pHandle, SbgEComMagRejectionConf *pRejectConf)
 
SbgErrorCode sbgEComCmdMagSetCalibData (SbgEComHandle *pHandle, const float offset[3], const float matrix[9])
 
SbgErrorCode sbgEComCmdMagSetModel (SbgEComHandle *pHandle, const void *pBuffer, uint32 size)
 
SbgErrorCode sbgEComCmdMagSetModelId (SbgEComHandle *pHandle, uint32 id)
 
SbgErrorCode sbgEComCmdMagSetRejection (SbgEComHandle *pHandle, const SbgEComMagRejectionConf *pRejectConf)
 
SbgErrorCode sbgEComCmdMagStartCalib (SbgEComHandle *pHandle, SbgEComMagCalibMode mode, SbgEComMagCalibBandwidth bandwidth)
 

Function Documentation

SbgErrorCode sbgEComCmdMagComputeCalib ( SbgEComHandle pHandle,
SbgEComMagCalibResults pCalibResults 
)

This command computes a magnetic calibration solution based on the magnetic field logged since the last call to the command SBG_ECOM_CMD_START_MAG_CALIB (15). As soon as the computations are done, the device will answer with quality indicators, status flags and if possible a valid magnetic calibration matrix and offset.

Parameters
[in]pHandleA valid sbgECom handle.
[out]pCalibResultsPointer on a SbgEComMagCalibResults structure that can hold onboard magnetic calibration results and status.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 407 of file sbgEComCmdMag.c.

SbgErrorCode sbgEComCmdMagGetModelInfo ( SbgEComHandle pHandle,
SbgEComModelInfo pModelInfo 
)

Retrieve magnetometer error model information.

Parameters
[in]pHandleA valid sbgECom handle.
[out]pMotionProfileInfoPointer to a SbgEComModelInfo to contain the current magnetometer error model info.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 29 of file sbgEComCmdMag.c.

SbgErrorCode sbgEComCmdMagGetRejection ( SbgEComHandle pHandle,
SbgEComMagRejectionConf pRejectConf 
)

Retrieve the rejection configuration of the magnetometer module.

Parameters
[in]pHandleA valid sbgECom handle.
[out]pRejectConfPointer to a SbgEComMagRejectionConf struct to hold rejection configuration of the magnetometer module.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 157 of file sbgEComCmdMag.c.

SbgErrorCode sbgEComCmdMagSetCalibData ( SbgEComHandle pHandle,
const float  offset[3],
const float  matrix[9] 
)

Send a command that set the magnetometers calibration parameters.

Parameters
[in]pHandleA valid sbgECom handle.
[in]offsetMagnetometers calibration offset vector.
[in]matixMagnetometers calibration 3x3 matrix.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 61 of file sbgEComCmdMag.c.

SbgErrorCode sbgEComCmdMagSetModel ( SbgEComHandle pHandle,
const void *  pBuffer,
uint32  size 
)

DEPRECATED FUNCTION. Please use sbgEComCmdMagSetModelId instead Set the error model for the magnetometer. The new configuration will only be applied after SBG_ECOM_CMD_SETTINGS_ACTION (01) command is issued, with SBG_ECOM_SAVE_SETTINGS parameter.

Parameters
[in]pHandleA valid sbgECom handle.
[in]pBufferRead only buffer containing the error model buffer.
[in]sizeSize of the buffer.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 46 of file sbgEComCmdMag.c.

SbgErrorCode sbgEComCmdMagSetModelId ( SbgEComHandle pHandle,
uint32  id 
)

Set magnetometer error model ID.

Parameters
[in]pHandleA valid sbgECom handle.
[in]idMagnetometer model ID to set
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 15 of file sbgEComCmdMag.c.

SbgErrorCode sbgEComCmdMagSetRejection ( SbgEComHandle pHandle,
const SbgEComMagRejectionConf pRejectConf 
)

Set the rejection configuration of the magnetometer module.

Parameters
[in]pHandleA valid sbgECom handle.
[in]pRejectConfPointer to a SbgEComMagRejectionConf struct holding rejection configuration for the magnetometer module.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 237 of file sbgEComCmdMag.c.

SbgErrorCode sbgEComCmdMagStartCalib ( SbgEComHandle pHandle,
SbgEComMagCalibMode  mode,
SbgEComMagCalibBandwidth  bandwidth 
)

Start the magnetic calibration process. As soon as this command is sent, the device will start logging magnetic field data internally. This set of data will be used later by the magnetic calibration algorithms to map the surrounding magnetic field.

Parameters
[in]pHandleA valid sbgECom handle.
[in]modeDefine which magnetic calibration type to perform. It could be 3D or 2D.
[in]bandwidthTell the device that we should have low, medium or high dynamics during the magnetic calibration process.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 320 of file sbgEComCmdMag.c.



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