mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 01:23:34 +08:00
Merge pull request #3174 from mhkabir/commander_led
Hotfix : fix commander LED reporting
This commit is contained in:
@@ -2536,7 +2536,7 @@ control_status_leds(vehicle_status_s *status_local, const actuator_armed_s *actu
|
|||||||
} else if (status_local->battery_warning == vehicle_status_s::VEHICLE_BATTERY_WARNING_CRITICAL) {
|
} else if (status_local->battery_warning == vehicle_status_s::VEHICLE_BATTERY_WARNING_CRITICAL) {
|
||||||
rgbled_set_color(RGBLED_COLOR_RED);
|
rgbled_set_color(RGBLED_COLOR_RED);
|
||||||
} else {
|
} else {
|
||||||
if (status_local->condition_home_position_valid) {
|
if (status_local->condition_home_position_valid && status_local->condition_global_position_valid) {
|
||||||
rgbled_set_color(RGBLED_COLOR_GREEN);
|
rgbled_set_color(RGBLED_COLOR_GREEN);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user