|
sbgECom Library
6.0.4661-stable
Interface SBG Systems IMU/AHRS/INS
|
Parse logs used to report EKF filter status. More...
Go to the source code of this file.
Data Structures | |
| struct | _SbgEComLogEkfStatus |
Typedefs | |
| typedef enum _SbgEComEkfStatusSolutionType | SbgEComEkfStatusSolutionType |
| typedef enum _SbgEComEkfStatusNavSafety | SbgEComEkfStatusNavSafety |
| typedef enum _SbgEComEkfStatusSpoofing | SbgEComEkfStatusSpoofing |
| typedef struct _SbgEComLogEkfStatus | SbgEComLogEkfStatus |
Functions | |
| SbgErrorCode | sbgEComLogEkfStatusReadFromStream (SbgEComLogEkfStatus *pLogData, SbgStreamBuffer *pStreamBuffer) |
| SbgErrorCode | sbgEComLogEkfStatusWriteToStream (const SbgEComLogEkfStatus *pLogData, SbgStreamBuffer *pStreamBuffer) |
| void | sbgEComLogEkfStatusConstruct (SbgEComLogEkfStatus *pLogData) |
| void | sbgEComLogEkfStatusSetNavSafety (SbgEComLogEkfStatus *pLogData, SbgEComEkfStatusNavSafety navSafety) |
| SbgEComEkfStatusNavSafety | sbgEComLogEkfStatusGetNavSafety (const SbgEComLogEkfStatus *pLogData) |
| void | sbgEComLogEkfStatusSetGnss1SpoofingIndicator (SbgEComLogEkfStatus *pLogData, SbgEComEkfStatusSpoofing spoofing) |
| SbgEComEkfStatusSpoofing | sbgEComLogEkfStatusGetGnss1SpoofingIndicator (const SbgEComLogEkfStatus *pLogData) |
| void | sbgEComLogEkfStatusSetGnss2SpoofingIndicator (SbgEComLogEkfStatus *pLogData, SbgEComEkfStatusSpoofing spoofing) |
| SbgEComEkfStatusSpoofing | sbgEComLogEkfStatusGetGnss2SpoofingIndicator (const SbgEComLogEkfStatus *pLogData) |
Parse logs used to report EKF filter status.
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_EKF_STATUS_ROLL_PITCH_VALID (0x0001u << 0) |
Set if attitude data is reliable (Roll/Pitch error within defined criteria).
| #define SBG_EKF_STATUS_HEADING_VALID (0x0001u << 1) |
Set if heading data is reliable (Heading error within defined criteria).
| #define SBG_EKF_STATUS_VELOCITY_VALID (0x0001u << 2) |
Set if velocity data is reliable (Velocity error within defined criteria).
| #define SBG_EKF_STATUS_POSITION_VALID (0x0001u << 3) |
Set if position data is reliable (Position error within defined criteria).
| #define SBG_EKF_STATUS_ALIGN_VALID (0x0001u << 4) |
Set if the INS is aligned and sensor error estimation has converged enough to trust the solution.
| #define SBG_EKF_STATUS_GNSS_SPOOFING_SRC_TIME (0x0001u << 3) |
Set if GNSS reports inconsistent time information.
| #define SBG_EKF_STATUS_GNSS_SPOOFING_SRC_BEHAVIOR (0x0001u << 4) |
Set if GNSS exhibits abnormal behavior consistent with spoofing.
| #define SBG_EKF_STATUS_GNSS_SPOOFING_SRC_SOLUTION (0x0001u << 5) |
Set if the GNSS PVT solution is inconsistent with the INS solution.
| #define SBG_EKF_STATUS_AIDING_VERTICAL_REF_USED (0x00000001u << 0) |
Set if the vertical reference is used in the solution.
| #define SBG_EKF_STATUS_AIDING_ZUPT_USED (0x00000001u << 1) |
Set if a Zero Velocity Update (ZUPT) is is used in the solution.
| #define SBG_EKF_STATUS_AIDING_ZARU_USED (0x00000001u << 2) |
Set if a Zero Angular Rate Update (ZARU) is used in the solution.
| #define SBG_EKF_STATUS_AIDING_MOTION_CONSTRAINT_USED (0x00000001u << 3) |
Set if vehicle motion constraints are used in the solution.
| #define SBG_EKF_STATUS_AIDING_MAGNETOMETER_USED (0x00000001u << 4) |
Set if the magnetometer is used in the solution.
| #define SBG_EKF_STATUS_AIDING_GNSS1_VEL_USED (0x00000001u << 5) |
Set if GNSS 1 velocity is used in the solution.
| #define SBG_EKF_STATUS_AIDING_GNSS1_POS_USED (0x00000001u << 6) |
Set if GNSS 1 position is used in the solution.
| #define SBG_EKF_STATUS_AIDING_GNSS1_HDT_USED (0x00000001u << 7) |
Set if GNSS 1 true heading is used in the solution.
| #define SBG_EKF_STATUS_AIDING_GNSS2_VEL_USED (0x00000001u << 8) |
Set if GNSS 2 velocity is used in the solution.
| #define SBG_EKF_STATUS_AIDING_GNSS2_POS_USED (0x00000001u << 9) |
Set if GNSS 2 position is used in the solution.
| #define SBG_EKF_STATUS_AIDING_GNSS2_HDT_USED (0x00000001u << 10) |
Set if GNSS 2 true heading is used in the solution.
| #define SBG_EKF_STATUS_AIDING_ODO_USED (0x00000001u << 11) |
Set if odometer velocity is used in the solution.
| #define SBG_EKF_STATUS_AIDING_DVL_BT_USED (0x00000001u << 12) |
Set if DVL bottom-track velocity is used in the solution.
| #define SBG_EKF_STATUS_AIDING_DVL_WT_USED (0x00000001u << 13) |
Set if DVL water-track velocity is used in the solution.
| #define SBG_EKF_STATUS_AIDING_USBL_USED (0x00000001u << 14) |
Set if USBL position is used in the solution.
| #define SBG_EKF_STATUS_AIDING_DEPTH_USED (0x00000001u << 15) |
Set if depth is used in the solution.
| #define SBG_EKF_STATUS_AIDING_AIRSPEED_USED (0x00000001u << 16) |
Set if true airspeed is used in the solution.
| #define SBG_EKF_STATUS_AIDING_BARO_USED (0x00000001u << 17) |
Set if barometric altitude is used in the solution.
| #define SBG_EKF_STATUS_AIDING_GENERIC_VEL1_USED (0x00000001u << 18) |
Set if generic velocity 1 is used in the solution.
| #define SBG_EKF_STATUS_AIDING_GENERIC_POS1_USED (0x00000001u << 19) |
Set if generic position 1 is used in the solution.
Solution types.
| typedef enum _SbgEComEkfStatusNavSafety SbgEComEkfStatusNavSafety |
Navigation safety indicator.
| typedef enum _SbgEComEkfStatusSpoofing SbgEComEkfStatusSpoofing |
Spoofing indicator.
| typedef struct _SbgEComLogEkfStatus SbgEComLogEkfStatus |
Stores EKF filter status data.
Solution types.
Navigation safety indicator.
Spoofing indicator.
| SbgErrorCode sbgEComLogEkfStatusReadFromStream | ( | SbgEComLogEkfStatus * | pLogData, |
| SbgStreamBuffer * | pStreamBuffer ) |
Parse data for the SBG_ECOM_LOG_EKF_STATUS message and fill the corresponding structure.
| [out] | pLogData | Log structure instance to fill. |
| [in] | pStreamBuffer | Input stream buffer to read the log from. |
| SbgErrorCode sbgEComLogEkfStatusWriteToStream | ( | const SbgEComLogEkfStatus * | pLogData, |
| SbgStreamBuffer * | pStreamBuffer ) |
Write data for the SBG_ECOM_LOG_EKF_STATUS 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 sbgEComLogEkfStatusConstruct | ( | SbgEComLogEkfStatus * | pLogData | ) |
Construct an empty / zero initialized instance.
| [in] | pLogData | Log instance. |
| void sbgEComLogEkfStatusSetNavSafety | ( | SbgEComLogEkfStatus * | pLogData, |
| SbgEComEkfStatusNavSafety | navSafety ) |
Set the navigation safety indicator.
| [in] | pLogData | Log instance. |
| [in] | navSafety | The navigation safety indicator to set. |
| SbgEComEkfStatusNavSafety sbgEComLogEkfStatusGetNavSafety | ( | const SbgEComLogEkfStatus * | pLogData | ) |
Returns the navigation safety indicator.
| [in] | pLogData | Log instance. |
| void sbgEComLogEkfStatusSetGnss1SpoofingIndicator | ( | SbgEComLogEkfStatus * | pLogData, |
| SbgEComEkfStatusSpoofing | spoofing ) |
Set the GNSS 1 spoofing indicator.
| [in] | pLogData | Log instance. |
| [in] | spoofing | The GNSS 1 spoofing indicator to set. |
| SbgEComEkfStatusSpoofing sbgEComLogEkfStatusGetGnss1SpoofingIndicator | ( | const SbgEComLogEkfStatus * | pLogData | ) |
Returns the GNSS 1 spoofing indicator.
| [in] | pLogData | Log instance. |
| void sbgEComLogEkfStatusSetGnss2SpoofingIndicator | ( | SbgEComLogEkfStatus * | pLogData, |
| SbgEComEkfStatusSpoofing | spoofing ) |
Set the GNSS 2 spoofing indicator.
| [in] | pLogData | Log instance. |
| [in] | spoofing | The GNSS 2 spoofing indicator to set. |
| SbgEComEkfStatusSpoofing sbgEComLogEkfStatusGetGnss2SpoofingIndicator | ( | const SbgEComLogEkfStatus * | pLogData | ) |
Returns the GNSS 2 spoofing indicator.
| [in] | pLogData | Log instance. |