mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 03:43:33 +08:00
commander: blink red on invalid mission
It doesn't make sense to blink green when something is not good.
This commit is contained in:
@@ -224,7 +224,7 @@ void tune_mission_warn(bool use_buzzer)
|
|||||||
void tune_mission_fail(bool use_buzzer)
|
void tune_mission_fail(bool use_buzzer)
|
||||||
{
|
{
|
||||||
blink_msg_end = hrt_absolute_time() + BLINK_MSG_TIME;
|
blink_msg_end = hrt_absolute_time() + BLINK_MSG_TIME;
|
||||||
rgbled_set_color_and_mode(led_control_s::COLOR_GREEN, led_control_s::MODE_BLINK_FAST);
|
rgbled_set_color_and_mode(led_control_s::COLOR_RED, led_control_s::MODE_BLINK_FAST);
|
||||||
|
|
||||||
if (use_buzzer) {
|
if (use_buzzer) {
|
||||||
set_tune(tune_control_s::TUNE_ID_NOTIFY_NEGATIVE);
|
set_tune(tune_control_s::TUNE_ID_NOTIFY_NEGATIVE);
|
||||||
|
|||||||
Reference in New Issue
Block a user