sbgECom Library
4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
|
GNSS velocity logs. More...
Go to the source code of this file.
Data Structures | |
struct | _SbgEComLogGnssVel |
Typedefs | |
typedef enum _SbgEComGnssVelStatus | SbgEComGnssVelStatus |
typedef enum _SbgEComGnssVelType | SbgEComGnssVelType |
typedef struct _SbgEComLogGnssVel | SbgEComLogGnssVel |
Enumerations | |
enum | _SbgEComGnssVelStatus { SBG_ECOM_GNSS_VEL_STATUS_SOL_COMPUTED = 0 , SBG_ECOM_GNSS_VEL_STATUS_INSUFFICIENT_OBS = 1 , SBG_ECOM_GNSS_VEL_STATUS_INTERNAL_ERROR = 2 , SBG_ECOM_GNSS_VEL_STATUS_LIMIT = 3 } |
enum | _SbgEComGnssVelType { SBG_ECOM_GNSS_VEL_TYPE_NO_SOLUTION = 0 , SBG_ECOM_GNSS_VEL_TYPE_UNKNOWN = 1 , SBG_ECOM_GNSS_VEL_TYPE_DOPPLER = 2 , SBG_ECOM_GNSS_VEL_TYPE_DIFFERENTIAL = 3 } |
Functions | |
void | sbgEComLogGnssVelZeroInit (SbgEComLogGnssVel *pLogData) |
SbgErrorCode | sbgEComLogGnssVelReadFromStream (SbgEComLogGnssVel *pLogData, SbgStreamBuffer *pStreamBuffer) |
SbgErrorCode | sbgEComLogGnssVelWriteToStream (const SbgEComLogGnssVel *pLogData, SbgStreamBuffer *pStreamBuffer) |
void | sbgEComLogGnssVelSetStatus (SbgEComLogGnssVel *pLogData, SbgEComGnssVelStatus status) |
SbgEComGnssVelStatus | sbgEComLogGnssVelGetStatus (const SbgEComLogGnssVel *pLogData) |
void | sbgEComLogGnssVelSetType (SbgEComLogGnssVel *pLogData, SbgEComGnssVelType posType) |
SbgEComGnssVelType | sbgEComLogGnssVelGetType (const SbgEComLogGnssVel *pLogData) |
bool | sbgEComLogGnssVelDownVelocityIsValid (const SbgEComLogGnssVel *pLogData) |
GNSS velocity 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 enum _SbgEComGnssVelStatus SbgEComGnssVelStatus |
GNSS velocity status definitions.
typedef enum _SbgEComGnssVelType SbgEComGnssVelType |
GNSS velocity types definitions.
typedef struct _SbgEComLogGnssVel SbgEComLogGnssVel |
Structure that stores data for the SBG_ECOM_LOG_GPS::_VEL message.
WARNING: Some GNSS protocols such as NMEA are not able to return a full 3D velocity. The maximum standard deviation value of 9999 m.s^-1 should be used to indicate an invalid down velocity component.
GNSS velocity status definitions.
enum _SbgEComGnssVelType |
GNSS velocity types definitions.
void sbgEComLogGnssVelZeroInit | ( | SbgEComLogGnssVel * | pLogData | ) |
Zero initialize the message struct.
[out] | pLogData | Structure instance to zero init. |
SbgErrorCode sbgEComLogGnssVelReadFromStream | ( | SbgEComLogGnssVel * | pLogData, |
SbgStreamBuffer * | pStreamBuffer | ||
) |
Parse data for the SBG_ECOM_LOG_GPS::_VEL message and fill the corresponding structure.
[out] | pLogData | Log structure instance to fill. |
[in] | pStreamBuffer | Input stream buffer to read the log from. |
SbgErrorCode sbgEComLogGnssVelWriteToStream | ( | const SbgEComLogGnssVel * | pLogData, |
SbgStreamBuffer * | pStreamBuffer | ||
) |
Write data for the SBG_ECOM_LOG_GPS::_VEL 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 sbgEComLogGnssVelSetStatus | ( | SbgEComLogGnssVel * | pLogData, |
SbgEComGnssVelStatus | status | ||
) |
Set the GNSS position solution status.
[in] | pLogData | Log instance. |
[in] | status | The solution status to set. |
SbgEComGnssVelStatus sbgEComLogGnssVelGetStatus | ( | const SbgEComLogGnssVel * | pLogData | ) |
Returns the GNSS position solution status.
[in] | pLogData | Log instance. |
void sbgEComLogGnssVelSetType | ( | SbgEComLogGnssVel * | pLogData, |
SbgEComGnssVelType | posType | ||
) |
Set the GNSS position solution type.
[in] | pLogData | Log instance. |
[in] | posType | The solution type to set. |
SbgEComGnssVelType sbgEComLogGnssVelGetType | ( | const SbgEComLogGnssVel * | pLogData | ) |
Returns the GNSS position solution type.
[in] | pLogData | Log instance. |
bool sbgEComLogGnssVelDownVelocityIsValid | ( | const SbgEComLogGnssVel * | pLogData | ) |
Returns true if the velocity down component is available/valid.
Some GNSS receivers such as the ones using NMEA protocols can't provide down velocity. This methods checks the velocity standard deviation down component.
[in] | pLogData | Log instance. |