mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
AP_AHRS: fixed a build warning
This commit is contained in:
parent
a276b9c271
commit
7a5ee29b6e
@ -1376,9 +1376,10 @@ void AP_AHRS_NavEKF::setTouchdownExpected(bool val)
|
||||
|
||||
bool AP_AHRS_NavEKF::getGpsGlitchStatus()
|
||||
{
|
||||
nav_filter_status ekf_status;
|
||||
get_filter_status(ekf_status);
|
||||
|
||||
nav_filter_status ekf_status {};
|
||||
if (!get_filter_status(ekf_status)) {
|
||||
return false;
|
||||
}
|
||||
return ekf_status.flags.gps_glitching;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user