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:
TeamOSEOLA 2014-04-10 16:49:56 -05:00 committed by Andrew Tridgell
parent 312a2fc8dc
commit 7dda8afd60

View File

@ -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{