From 8e8487c699f6cc4f7d28556cef529eb2629bdbf0 Mon Sep 17 00:00:00 2001
From: Randy Mackay <rmackay9@yahoo.com>
Date: Thu, 12 Mar 2015 20:06:58 +0900
Subject: [PATCH] Notify: remove baro_glitch reporting

---
 libraries/AP_Notify/AP_Notify.h |  1 -
 libraries/AP_Notify/Buzzer.cpp  | 10 ----------
 libraries/AP_Notify/Buzzer.h    |  1 -
 libraries/AP_Notify/RGBLed.cpp  |  7 -------
 4 files changed, 19 deletions(-)

diff --git a/libraries/AP_Notify/AP_Notify.h b/libraries/AP_Notify/AP_Notify.h
index 3114740732..4221069711 100644
--- a/libraries/AP_Notify/AP_Notify.h
+++ b/libraries/AP_Notify/AP_Notify.h
@@ -60,7 +60,6 @@ public:
         uint32_t initialising       : 1;    // 1 if initialising and copter should not be moved
         uint32_t gps_status         : 3;    // 0 = no gps, 1 = no lock, 2 = 2d lock, 3 = 3d lock, 4 = dgps lock, 5 = rtk lock
         uint32_t gps_glitching      : 1;    // 1 if gps position is not good
-        uint32_t baro_glitching     : 1;    // 1 if baro altitude is not good
         uint32_t armed              : 1;    // 0 = disarmed, 1 = armed
         uint32_t pre_arm_check      : 1;    // 0 = failing checks, 1 = passed
         uint32_t pre_arm_gps_check  : 1;    // 0 = failing pre-arm GPS checks, 1 = passed
diff --git a/libraries/AP_Notify/Buzzer.cpp b/libraries/AP_Notify/Buzzer.cpp
index 1f07757337..9884c1f5a2 100644
--- a/libraries/AP_Notify/Buzzer.cpp
+++ b/libraries/AP_Notify/Buzzer.cpp
@@ -228,16 +228,6 @@ void Buzzer::update()
         return;
     }
 
-    // check baro glitch
-    if (_flags.baro_glitching != AP_Notify::flags.baro_glitching) {
-        _flags.baro_glitching = AP_Notify::flags.baro_glitching;
-        if (_flags.baro_glitching) {
-            // baro glitch warning buzz
-            play_pattern(BARO_GLITCH);
-        }
-        return;
-    }
-
     // if battery failsafe constantly single buzz
     if (AP_Notify::flags.failsafe_battery) {
         play_pattern(SINGLE_BUZZ);
diff --git a/libraries/AP_Notify/Buzzer.h b/libraries/AP_Notify/Buzzer.h
index 84d94aecc0..b1eb76e4b9 100644
--- a/libraries/AP_Notify/Buzzer.h
+++ b/libraries/AP_Notify/Buzzer.h
@@ -75,7 +75,6 @@ private:
         uint8_t armed               : 1;    // 0 = disarmed, 1 = armed
         uint8_t failsafe_battery    : 1;    // 1 if battery failsafe has triggered
         uint8_t failsafe_gps        : 1;    // 1 if gps failsafe
-        uint8_t baro_glitching     : 1;    // 1 if baro alt is glitching
         uint8_t ekf_bad            : 1;    // 1 if ekf position has gone bad
     } _flags;
 
diff --git a/libraries/AP_Notify/RGBLed.cpp b/libraries/AP_Notify/RGBLed.cpp
index 7683e15184..94a7425df5 100644
--- a/libraries/AP_Notify/RGBLed.cpp
+++ b/libraries/AP_Notify/RGBLed.cpp
@@ -153,11 +153,9 @@ void RGBLed::update_colours(void)
 
     // radio and battery failsafe patter: flash yellow
     // gps failsafe pattern : flashing yellow and blue
-    // baro glitching pattern : flashing yellow and purple
     // ekf_bad pattern : flashing yellow and red
     if (AP_Notify::flags.failsafe_radio || AP_Notify::flags.failsafe_battery ||
             AP_Notify::flags.failsafe_gps || AP_Notify::flags.gps_glitching ||
-            AP_Notify::flags.baro_glitching ||
             AP_Notify::flags.ekf_bad) {
         switch(step) {
             case 0:
@@ -180,11 +178,6 @@ void RGBLed::update_colours(void)
                     _red_des = _led_off;
                     _blue_des = brightness;
                     _green_des = _led_off;
-                } else if (AP_Notify::flags.baro_glitching) {
-                    // purple on if baro glitching
-                    _red_des = brightness;
-                    _blue_des = brightness;
-                    _green_des = _led_off;
                 } else if (AP_Notify::flags.ekf_bad) {
                     // red on if ekf bad
                     _red_des = brightness;