mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 13:00:34 +08:00
Run mc_pos_control for acceleration control mode flag
This commit is contained in:
committed by
Daniel Agar
parent
6a6352577c
commit
ceb445caa0
@@ -292,7 +292,7 @@ void MulticopterPositionControl::Run()
|
||||
|
||||
PositionControlStates states{set_vehicle_states(local_pos)};
|
||||
|
||||
if (_control_mode.flag_control_climb_rate_enabled) {
|
||||
if (_control_mode.flag_control_acceleration_enabled || _control_mode.flag_control_climb_rate_enabled) {
|
||||
|
||||
_trajectory_setpoint_sub.update(&_setpoint);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user