mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
Update status leds every time when prearm check status changes
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Beat Küng
parent
ef5761c223
commit
deb6053d56
@@ -1713,9 +1713,14 @@ void Commander::run()
|
||||
|
||||
perf_begin(_preflight_check_perf);
|
||||
_health_and_arming_checks.update();
|
||||
_vehicle_status.pre_flight_checks_pass = _health_and_arming_checks.canArm(_vehicle_status.nav_state);
|
||||
perf_end(_preflight_check_perf);
|
||||
bool pre_flight_checks_pass = _health_and_arming_checks.canArm(_vehicle_status.nav_state);
|
||||
|
||||
if (_vehicle_status.pre_flight_checks_pass != pre_flight_checks_pass) {
|
||||
_vehicle_status.pre_flight_checks_pass = pre_flight_checks_pass;
|
||||
_status_changed = true;
|
||||
}
|
||||
|
||||
perf_end(_preflight_check_perf);
|
||||
checkAndInformReadyForTakeoff();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user