mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
Commander: Only indicate green led if home position is valid
This commit is contained in:
@@ -121,7 +121,6 @@ bool condition_system_sensors_initialized
|
|||||||
bool condition_system_returned_to_home
|
bool condition_system_returned_to_home
|
||||||
bool condition_auto_mission_available
|
bool condition_auto_mission_available
|
||||||
bool condition_global_position_valid # set to true by the commander app if the quality of the position estimate is good enough to use it for navigation
|
bool condition_global_position_valid # set to true by the commander app if the quality of the position estimate is good enough to use it for navigation
|
||||||
bool condition_launch_position_valid # indicates a valid launch position
|
|
||||||
bool condition_home_position_valid # indicates a valid home position (a valid home position is not always a valid launch)
|
bool condition_home_position_valid # indicates a valid home position (a valid home position is not always a valid launch)
|
||||||
bool condition_local_position_valid
|
bool condition_local_position_valid
|
||||||
bool condition_local_altitude_valid
|
bool condition_local_altitude_valid
|
||||||
|
|||||||
@@ -2356,7 +2356,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_global_position_valid) {
|
if (status_local->condition_home_position_valid) {
|
||||||
rgbled_set_color(RGBLED_COLOR_GREEN);
|
rgbled_set_color(RGBLED_COLOR_GREEN);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user