Copter: update AP_Notify for gps failsafe and glitching
This commit is contained in:
parent
90953a96e5
commit
4c8227c050
@ -80,6 +80,9 @@ void set_low_battery(bool b)
|
||||
static void set_failsafe_gps(bool b)
|
||||
{
|
||||
ap.failsafe_gps = b;
|
||||
|
||||
// update AP_Notify
|
||||
AP_Notify::flags.failsafe_gps = b;
|
||||
}
|
||||
|
||||
// ---------------------------------------------
|
||||
|
@ -1388,8 +1388,9 @@ static void update_GPS(void)
|
||||
// for performance monitoring
|
||||
gps_fix_count++;
|
||||
|
||||
// run glitch protection
|
||||
// run glitch protection and update AP_Notify
|
||||
gps_glitch.check_position();
|
||||
AP_Notify::flags.gps_glitching = gps_glitch.glitching();
|
||||
|
||||
// check if we can initialise home yet
|
||||
if (!ap.home_is_set) {
|
||||
|
Loading…
Reference in New Issue
Block a user