Browse Source

AP_Notify: Add calibration indications for EKF temp and compass cal to RGB LED

zr-v5.1
Hwurzburg 4 years ago committed by Randy Mackay
parent
commit
e1bab7374b
  1. 11
      libraries/AP_Notify/RGBLed.cpp

11
libraries/AP_Notify/RGBLed.cpp

@ -30,7 +30,7 @@ RGBLed::RGBLed(uint8_t led_off, uint8_t led_bright, uint8_t led_medium, uint8_t
_led_dim(led_dim) _led_dim(led_dim)
{ {
} }
bool RGBLed::init() bool RGBLed::init()
{ {
@ -109,8 +109,11 @@ uint32_t RGBLed::get_colour_sequence(void) const
return sequence_initialising; return sequence_initialising;
} }
// save trim and esc calibration pattern // save trim or any calibration pattern
if (AP_Notify::flags.save_trim || AP_Notify::flags.esc_calibration) { if (AP_Notify::flags.save_trim ||
AP_Notify::flags.esc_calibration ||
AP_Notify::flags.compass_cal_running ||
AP_Notify::flags.temp_cal_running) {
return sequence_trim_or_esc; return sequence_trim_or_esc;
} }
@ -242,7 +245,7 @@ void RGBLed::handle_led_control(const mavlink_message_t &msg)
mavlink_msg_led_control_decode(&msg, &packet); mavlink_msg_led_control_decode(&msg, &packet);
_led_override.start_ms = AP_HAL::millis(); _led_override.start_ms = AP_HAL::millis();
switch (packet.custom_len) { switch (packet.custom_len) {
case 3: case 3:
_led_override.rate_hz = 0; _led_override.rate_hz = 0;

Loading…
Cancel
Save