Browse Source

Plane: improve user friendliness of throttle fs msg

master
Michael du Breuil 9 years ago committed by Tom Pittenger
parent
commit
7142bacfaa
  1. 4
      ArduPlane/radio.cpp

4
ArduPlane/radio.cpp

@ -253,7 +253,7 @@ void Plane::control_failsafe(uint16_t pwm) @@ -253,7 +253,7 @@ void Plane::control_failsafe(uint16_t pwm)
// throttle has dropped below the mark
failsafe.ch3_counter++;
if (failsafe.ch3_counter == 10) {
gcs_send_text_fmt(MAV_SEVERITY_WARNING, "MSG FS ON %u", (unsigned)pwm);
gcs_send_text_fmt(MAV_SEVERITY_WARNING, "Throttle failsafe on %u", (unsigned)pwm);
failsafe.ch3_failsafe = true;
AP_Notify::flags.failsafe_radio = true;
}
@ -269,7 +269,7 @@ void Plane::control_failsafe(uint16_t pwm) @@ -269,7 +269,7 @@ void Plane::control_failsafe(uint16_t pwm)
failsafe.ch3_counter = 3;
}
if (failsafe.ch3_counter == 1) {
gcs_send_text_fmt(MAV_SEVERITY_WARNING, "MSG FS OFF %u", (unsigned)pwm);
gcs_send_text_fmt(MAV_SEVERITY_WARNING, "Throttle failsafe off %u", (unsigned)pwm);
} else if(failsafe.ch3_counter == 0) {
failsafe.ch3_failsafe = false;
AP_Notify::flags.failsafe_radio = false;

Loading…
Cancel
Save