mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:28:53 +08:00
mc_pos_control: update _curr_pos_sp all the time
This commit is contained in:
committed by
Lorenz Meier
parent
9dc5051504
commit
50e3c4067a
@@ -1381,6 +1381,9 @@ void MulticopterPositionControl::control_auto(float dt)
|
||||
triplet_updated = true;
|
||||
}
|
||||
|
||||
/* we need to update _curr_pos_sp always since navigator applies slew rate on z */
|
||||
_curr_pos_sp = curr_pos_sp;
|
||||
|
||||
}
|
||||
|
||||
if (_pos_sp_triplet.previous.valid) {
|
||||
|
||||
Reference in New Issue
Block a user