sbgECom Library
5.3.2276-stable
Interface SBG Systems IMU/AHRS/INS
|
Parse received generic velocity measurement logs. More...
Go to the source code of this file.
Data Structures | |
struct | _SbgEComLogVelocity |
Macros | |
#define | SBG_ECOM_VELOCITY_0_VALID (0x0001 << 3) |
#define | SBG_ECOM_VELOCITY_1_VALID (0x0001 << 4) |
#define | SBG_ECOM_VELOCITY_2_VALID (0x0001 << 5) |
#define | SBG_ECOM_VELOCITY_STD_VALID (0x0001 << 6) |
Typedefs | |
typedef enum _SbgEComVelocityTimeType | SbgEComVelocityTimeType |
typedef struct _SbgEComLogVelocity | SbgEComLogVelocity |
Enumerations | |
enum | _SbgEComVelocityTimeType { SBG_ECOM_VELOCITY_TIME_TYPE_TIMESTAMP = 0 , SBG_ECOM_VELOCITY_TIME_TYPE_DELAY = 1 , SBG_ECOM_VELOCITY_TIME_TYPE_TIME_OF_WEEK = 2 } |
Functions | |
SbgErrorCode | sbgEComLogVelocityReadFromStream (SbgEComLogVelocity *pLogData, SbgStreamBuffer *pStreamBuffer) |
SbgErrorCode | sbgEComLogVelocityWriteToStream (const SbgEComLogVelocity *pLogData, SbgStreamBuffer *pStreamBuffer) |
void | sbgEComLogVelocitySetTimeType (SbgEComLogVelocity *pLogData, SbgEComVelocityTimeType timeType) |
SbgEComVelocityTimeType | sbgEComLogVelocityGetTimeType (const SbgEComLogVelocity *pLogData) |
Parse received generic velocity measurement 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.
#define SBG_ECOM_VELOCITY_0_VALID (0x0001 << 3) |
Velocity status mask definitions. Set to 1 if the X or North velocity information is valid.
#define SBG_ECOM_VELOCITY_1_VALID (0x0001 << 4) |
Set to 1 if the Y or East velocity information is valid.
#define SBG_ECOM_VELOCITY_2_VALID (0x0001 << 5) |
Set to 1 if the Z or Down velocity information is valid.
#define SBG_ECOM_VELOCITY_STD_VALID (0x0001 << 6) |
Set to 1 if the velocity standard deviation information is valid.
typedef enum _SbgEComVelocityTimeType SbgEComVelocityTimeType |
Time types definitions.
typedef struct _SbgEComLogVelocity SbgEComLogVelocity |
Log structure for velocity measurements.
Time types definitions.
SbgErrorCode sbgEComLogVelocityReadFromStream | ( | SbgEComLogVelocity * | pLogData, |
SbgStreamBuffer * | pStreamBuffer ) |
Parse data for the SBG_ECOM_LOG_VELOCITY_# message and fill the corresponding structure.
[out] | pLogData | Log structure instance to fill. |
[in] | pStreamBuffer | Input stream buffer to read the log from. |
SbgErrorCode sbgEComLogVelocityWriteToStream | ( | const SbgEComLogVelocity * | pLogData, |
SbgStreamBuffer * | pStreamBuffer ) |
Write data for the SBG_ECOM_LOG_VELOCITY_# 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. |
void sbgEComLogVelocitySetTimeType | ( | SbgEComLogVelocity * | pLogData, |
SbgEComVelocityTimeType | timeType ) |
Set the velocity time type.
[in] | pLogData | Log instance. |
[in] | timeType | The time type to set. |
SbgEComVelocityTimeType sbgEComLogVelocityGetTimeType | ( | const SbgEComLogVelocity * | pLogData | ) |
Returns the velocity time type.
[in] | pLogData | Log instance. |