mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
Copter: Fixed GPS_ok() status checking
Fixed the GPS_ok() so that TRUE is returned in the cases of DGPS and Assisted GPS fixes, not just 3D fix.
This commit is contained in:
parent
312a2fc8dc
commit
7dda8afd60
@ -328,7 +328,7 @@ static void startup_ground(bool force_gyro_cal)
|
||||
// returns true if the GPS is ok and home position is set
|
||||
static bool GPS_ok()
|
||||
{
|
||||
if (ap.home_is_set && gps.status() == AP_GPS::GPS_OK_FIX_3D &&
|
||||
if (ap.home_is_set && gps.status() >= AP_GPS::GPS_OK_FIX_3D &&
|
||||
!gps_glitch.glitching() && !failsafe.gps) {
|
||||
return true;
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user