Merge pull request #3174 from mhkabir/commander_led

Hotfix : fix commander LED reporting
This commit is contained in:
Lorenz Meier 2015-11-11 11:41:04 +01:00
commit 51bfb2be94
1 changed files with 1 additions and 1 deletions

View File

@ -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 {