sbgECom Library
5.2.590-stable
Interface SBG Systems IMU/AHRS/INS
|
Parse magnetic calibration logs. More...
Go to the source code of this file.
Data Structures | |
struct | _SbgEComLogMagCalib |
Typedefs | |
typedef struct _SbgEComLogMagCalib | SbgEComLogMagCalib |
Functions | |
SbgErrorCode | sbgEComLogMagCalibReadFromStream (SbgEComLogMagCalib *pLogData, SbgStreamBuffer *pStreamBuffer) |
SbgErrorCode | sbgEComLogMagCalibWriteToStream (const SbgEComLogMagCalib *pLogData, SbgStreamBuffer *pStreamBuffer) |
Parse magnetic calibration logs.
The MIT license
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
typedef struct _SbgEComLogMagCalib SbgEComLogMagCalib |
Represents data from the SBG_ECOM_LOG_MAG_CALIB message.
This structure contains raw magnetic field data that has not been compensated for soft and hard iron effects. It is intended to be used with SBG Systems' magnetic calibration algorithms, which calculate the necessary compensation parameters to correct for these distortions.
Note: An effective strategy for utilizing this data involves storing the raw data stream that includes this message and later processing it with the sbgCenter software to perform offline soft and hard iron magnetic compensation.
SbgErrorCode sbgEComLogMagCalibReadFromStream | ( | SbgEComLogMagCalib * | pLogData, |
SbgStreamBuffer * | pStreamBuffer ) |
Parse data for the SBG_ECOM_LOG_MAG_CALIB message and fill the corresponding structure.
[out] | pLogData | Log structure instance to fill. |
[in] | pStreamBuffer | Input stream buffer to read the log from. |
SbgErrorCode sbgEComLogMagCalibWriteToStream | ( | const SbgEComLogMagCalib * | pLogData, |
SbgStreamBuffer * | pStreamBuffer ) |
Write data for the SBG_ECOM_LOG_MAG_CALIB message to the output stream buffer from the provided structure.
[in] | pLogData | Log structure instance to write. |
[out] | pStreamBuffer | Output stream buffer to write the log to. |