This file is used to parse received IMU binary logs. More...
Go to the source code of this file.
Classes | |
struct | _SbgLogFastImuData |
struct | _SbgLogImuData |
Macros | |
#define | SBG_ECOM_IMU_ACCEL_X_BIT (0x00000001u << 2) |
#define | SBG_ECOM_IMU_ACCEL_Y_BIT (0x00000001u << 3) |
#define | SBG_ECOM_IMU_ACCEL_Z_BIT (0x00000001u << 4) |
#define | SBG_ECOM_IMU_ACCELS_IN_RANGE (0x00000001u << 8) |
#define | SBG_ECOM_IMU_COM_OK (0x00000001u << 0) |
#define | SBG_ECOM_IMU_GYRO_X_BIT (0x00000001u << 5) |
#define | SBG_ECOM_IMU_GYRO_Y_BIT (0x00000001u << 6) |
#define | SBG_ECOM_IMU_GYRO_Z_BIT (0x00000001u << 7) |
#define | SBG_ECOM_IMU_GYROS_IN_RANGE (0x00000001u << 9) |
#define | SBG_ECOM_IMU_STATUS_BIT (0x00000001u << 1) |
Typedefs | |
typedef struct _SbgLogFastImuData | SbgLogFastImuData |
typedef struct _SbgLogImuData | SbgLogImuData |
Functions | |
SbgErrorCode | sbgEComBinaryLogParseFastImuData (SbgStreamBuffer *pInputStream, SbgLogFastImuData *pOutputData) |
SbgErrorCode | sbgEComBinaryLogParseImuData (SbgStreamBuffer *pInputStream, SbgLogImuData *pOutputData) |
SbgErrorCode | sbgEComBinaryLogWriteFastImuData (SbgStreamBuffer *pOutputStream, const SbgLogFastImuData *pInputData) |
SbgErrorCode | sbgEComBinaryLogWriteImuData (SbgStreamBuffer *pOutputStream, const SbgLogImuData *pInputData) |
This file is used to parse received IMU binary logs.
Copyright (C) 2007-2013, SBG Systems SAS. All rights reserved.
This source code is intended for use only by SBG Systems SAS and those that have explicit written permission to use it from SBG Systems SAS.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
Definition in file sbgEComBinaryLogImu.h.
#define SBG_ECOM_IMU_ACCEL_X_BIT (0x00000001u << 2) |
Set to 1 if the accelerometer X passes Built In Test.
Definition at line 36 of file sbgEComBinaryLogImu.h.
#define SBG_ECOM_IMU_ACCEL_Y_BIT (0x00000001u << 3) |
Set to 1 if the accelerometer Y passes Built In Test.
Definition at line 37 of file sbgEComBinaryLogImu.h.
#define SBG_ECOM_IMU_ACCEL_Z_BIT (0x00000001u << 4) |
Set to 1 if the accelerometer Z passes Built In Test.
Definition at line 38 of file sbgEComBinaryLogImu.h.
#define SBG_ECOM_IMU_ACCELS_IN_RANGE (0x00000001u << 8) |
Set to 1 if all accelerometers are within operating range.
Definition at line 44 of file sbgEComBinaryLogImu.h.
#define SBG_ECOM_IMU_COM_OK (0x00000001u << 0) |
Log inertial data status mask definitionsSet to 1 if the communication with the IMU is ok.
Definition at line 33 of file sbgEComBinaryLogImu.h.
#define SBG_ECOM_IMU_GYRO_X_BIT (0x00000001u << 5) |
Set to 1 if the gyroscope X passes Built In Test.
Definition at line 40 of file sbgEComBinaryLogImu.h.
#define SBG_ECOM_IMU_GYRO_Y_BIT (0x00000001u << 6) |
Set to 1 if the gyroscope Y passes Built In Test.
Definition at line 41 of file sbgEComBinaryLogImu.h.
#define SBG_ECOM_IMU_GYRO_Z_BIT (0x00000001u << 7) |
Set to 1 if the gyroscope Z passes Built In Test.
Definition at line 42 of file sbgEComBinaryLogImu.h.
#define SBG_ECOM_IMU_GYROS_IN_RANGE (0x00000001u << 9) |
Set to 1 if all gyroscopes are within operating range.
Definition at line 45 of file sbgEComBinaryLogImu.h.
#define SBG_ECOM_IMU_STATUS_BIT (0x00000001u << 1) |
Set to 1 if the IMU passes general Built in Tests (calibration, CPU, ...).
Definition at line 34 of file sbgEComBinaryLogImu.h.
typedef struct _SbgLogFastImuData SbgLogFastImuData |
Structure that stores the data for SBG_ECOM_LOG_FAST_IMU_DATA message
typedef struct _SbgLogImuData SbgLogImuData |
Structure that stores data for the SBG_ECOM_LOG_IMU_DATA message.
SbgErrorCode sbgEComBinaryLogParseFastImuData | ( | SbgStreamBuffer * | pInputStream, |
SbgLogFastImuData * | pOutputData | ||
) |
Parse data for the SBG_ECOM_LOG_FAST_IMU_DATA message and fill the corresponding structure.
[in] | pInputStream | Input stream buffer to read the payload from. |
[out] | pOutputData | Pointer on the output structure that stores parsed data. |
Definition at line 101 of file sbgEComBinaryLogImu.c.
SbgErrorCode sbgEComBinaryLogParseImuData | ( | SbgStreamBuffer * | pInputStream, |
SbgLogImuData * | pOutputData | ||
) |
Parse data for the SBG_ECOM_LOG_IMU_DATA message and fill the corresponding structure.
[in] | pInputStream | Input stream buffer to read the payload from. |
[out] | pOutputData | Pointer on the output structure that stores parsed data. |
Definition at line 13 of file sbgEComBinaryLogImu.c.
SbgErrorCode sbgEComBinaryLogWriteFastImuData | ( | SbgStreamBuffer * | pOutputStream, |
const SbgLogFastImuData * | pInputData | ||
) |
Write data for the SBG_ECOM_LOG_FAST_IMU_DATA message to the output stream buffer from the provided structure.
[out] | pOutputStream | Output stream buffer to write the payload to. |
[in] | pInputData | Pointer on the input structure that stores data to write. |
Definition at line 135 of file sbgEComBinaryLogImu.c.
SbgErrorCode sbgEComBinaryLogWriteImuData | ( | SbgStreamBuffer * | pOutputStream, |
const SbgLogImuData * | pInputData | ||
) |
Write data for the SBG_ECOM_LOG_IMU_DATA message to the output stream buffer from the provided structure.
[out] | pOutputStream | Output stream buffer to write the payload to. |
[in] | pInputData | Pointer on the input structure that stores data to write. |
Definition at line 57 of file sbgEComBinaryLogImu.c.