mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 05:50:35 +08:00
en-/disable mc position controller using explicit control mode flag
This commit is contained in:
committed by
Mathieu Bresciani
parent
17ea92bb54
commit
514845592b
@@ -289,7 +289,7 @@ void MulticopterPositionControl::Run()
|
||||
|
||||
PositionControlStates states{set_vehicle_states(local_pos)};
|
||||
|
||||
if (_control_mode.flag_control_acceleration_enabled || _control_mode.flag_control_climb_rate_enabled) {
|
||||
if (_control_mode.flag_multicopter_position_control_enabled) {
|
||||
|
||||
_trajectory_setpoint_sub.update(&_setpoint);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user