forked from Archive/PX4-Autopilot
FWRateController: always update manual_control_setpoint if in manual and FW
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
parent
caee131e6a
commit
2d92bd627a
|
@ -92,8 +92,7 @@ FixedwingRateControl::parameters_update()
|
|||
void
|
||||
FixedwingRateControl::vehicle_manual_poll()
|
||||
{
|
||||
if (_vcontrol_mode.flag_control_manual_enabled && !_vcontrol_mode.flag_control_climb_rate_enabled
|
||||
&& _in_fw_or_transition_wo_tailsitter_transition) {
|
||||
if (_vcontrol_mode.flag_control_manual_enabled && _in_fw_or_transition_wo_tailsitter_transition) {
|
||||
|
||||
// Always copy the new manual setpoint, even if it wasn't updated, to fill the actuators with valid values
|
||||
if (_manual_control_setpoint_sub.copy(&_manual_control_setpoint)) {
|
||||
|
|
Loading…
Reference in New Issue