Copter: update AP_Notify for gps failsafe and glitching

This commit is contained in:
Randy Mackay 2013-09-22 22:20:47 +09:00
parent 90953a96e5
commit 4c8227c050
2 changed files with 5 additions and 1 deletions

View File

@ -80,6 +80,9 @@ void set_low_battery(bool b)
static void set_failsafe_gps(bool b) static void set_failsafe_gps(bool b)
{ {
ap.failsafe_gps = b; ap.failsafe_gps = b;
// update AP_Notify
AP_Notify::flags.failsafe_gps = b;
} }
// --------------------------------------------- // ---------------------------------------------

View File

@ -1388,8 +1388,9 @@ static void update_GPS(void)
// for performance monitoring // for performance monitoring
gps_fix_count++; gps_fix_count++;
// run glitch protection // run glitch protection and update AP_Notify
gps_glitch.check_position(); gps_glitch.check_position();
AP_Notify::flags.gps_glitching = gps_glitch.glitching();
// check if we can initialise home yet // check if we can initialise home yet
if (!ap.home_is_set) { if (!ap.home_is_set) {