forked from Archive/PX4-Autopilot
Merge pull request #3174 from mhkabir/commander_led
Hotfix : fix commander LED reporting
This commit is contained in:
commit
51bfb2be94
|
@ -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) {
|
||||
rgbled_set_color(RGBLED_COLOR_RED);
|
||||
} 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);
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue