mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 18:06:39 +08:00
Read the current flight termination circuit breaker value, not just updated values.
This commit is contained in:
committed by
Lorenz Meier
parent
db8dd000e3
commit
ea8ba79481
@@ -909,6 +909,9 @@ PX4IO::task_main()
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fetch initial flight termination circuit breaker state */
|
||||||
|
_cb_flighttermination = circuit_breaker_enabled("CBRK_FLIGHTTERM", CBRK_FLIGHTTERM_KEY);
|
||||||
|
|
||||||
/* poll descriptor */
|
/* poll descriptor */
|
||||||
pollfd fds[1];
|
pollfd fds[1];
|
||||||
fds[0].fd = _t_actuator_controls_0;
|
fds[0].fd = _t_actuator_controls_0;
|
||||||
@@ -1079,7 +1082,7 @@ PX4IO::task_main()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update Circuit breakers */
|
/* Check if the flight termination circuit breaker has been updated */
|
||||||
_cb_flighttermination = circuit_breaker_enabled("CBRK_FLIGHTTERM", CBRK_FLIGHTTERM_KEY);
|
_cb_flighttermination = circuit_breaker_enabled("CBRK_FLIGHTTERM", CBRK_FLIGHTTERM_KEY);
|
||||||
|
|
||||||
param_get(param_find("RC_RSSI_PWM_CHAN"), &_rssi_pwm_chan);
|
param_get(param_find("RC_RSSI_PWM_CHAN"), &_rssi_pwm_chan);
|
||||||
|
|||||||
Reference in New Issue
Block a user