mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_AHRS: Change the order in which you make judgments
This commit is contained in:
parent
e91cab3349
commit
5e47fa1353
@ -434,7 +434,7 @@ AP_AHRS_DCM::_yaw_gain(void) const
|
|||||||
// return true if we have and should use GPS
|
// return true if we have and should use GPS
|
||||||
bool AP_AHRS_DCM::have_gps(void) const
|
bool AP_AHRS_DCM::have_gps(void) const
|
||||||
{
|
{
|
||||||
if (AP::gps().status() <= AP_GPS::NO_FIX || _gps_use == GPSUse::Disable) {
|
if (_gps_use == GPSUse::Disable || AP::gps().status() <= AP_GPS::NO_FIX) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user