sbgECom Library
4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
|
Parse received air data measurement logs such as barometer data. More...
Go to the source code of this file.
Data Structures | |
struct | _SbgEComLogAirData |
Macros | |
#define | SBG_ECOM_AIR_DATA_TIME_IS_DELAY (0x0001u << 0) |
#define | SBG_ECOM_AIR_DATA_PRESSURE_ABS_VALID (0x0001u << 1) |
#define | SBG_ECOM_AIR_DATA_ALTITUDE_VALID (0x0001u << 2) |
#define | SBG_ECOM_AIR_DATA_PRESSURE_DIFF_VALID (0x0001u << 3) |
#define | SBG_ECOM_AIR_DATA_AIRPSEED_VALID (0x0001u << 4) |
#define | SBG_ECOM_AIR_DATA_TEMPERATURE_VALID (0x0001u << 5) |
Typedefs | |
typedef struct _SbgEComLogAirData | SbgEComLogAirData |
Functions | |
SbgErrorCode | sbgEComLogAirDataReadFromStream (SbgEComLogAirData *pLogData, SbgStreamBuffer *pStreamBuffer) |
SbgErrorCode | sbgEComLogAirDataWriteToStream (const SbgEComLogAirData *pLogData, SbgStreamBuffer *pStreamBuffer) |
Parse received air data measurement logs such as barometer data.
Air Data logs are used to inject / return barometric altitude as well as true air speed.
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.
#define SBG_ECOM_AIR_DATA_TIME_IS_DELAY (0x0001u << 0) |
Air Data sensor status mask definitions Set to 1 if the time stamp field represents a delay instead of an absolute time stamp.
#define SBG_ECOM_AIR_DATA_PRESSURE_ABS_VALID (0x0001u << 1) |
Set to 1 if the pressure field is filled and valid.
#define SBG_ECOM_AIR_DATA_ALTITUDE_VALID (0x0001u << 2) |
Set to 1 if the barometric altitude field is filled and valid.
#define SBG_ECOM_AIR_DATA_PRESSURE_DIFF_VALID (0x0001u << 3) |
Set to 1 if the differential pressure field is filled and valid.
#define SBG_ECOM_AIR_DATA_AIRPSEED_VALID (0x0001u << 4) |
Set to 1 if the true airspeed field is filled and valid.
#define SBG_ECOM_AIR_DATA_TEMPERATURE_VALID (0x0001u << 5) |
Set to 1 if the output air temperature field is filled and valid.
typedef struct _SbgEComLogAirData SbgEComLogAirData |
Log structure for AirData.
SbgErrorCode sbgEComLogAirDataReadFromStream | ( | SbgEComLogAirData * | pLogData, |
SbgStreamBuffer * | pStreamBuffer | ||
) |
Parse data for the SBG_ECOM_LOG_AIR_DATA message and fill the corresponding structure.
[out] | pLogData | Log structure instance to fill. |
[in] | pStreamBuffer | Input stream buffer to read the log from. |
SbgErrorCode sbgEComLogAirDataWriteToStream | ( | const SbgEComLogAirData * | pLogData, |
SbgStreamBuffer * | pStreamBuffer | ||
) |
Write data for the SBG_ECOM_LOG_AIR_DATA 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. |