Skip to content
Snippets Groups Projects
Commit 50e3c406 authored by Dennis Mannhart's avatar Dennis Mannhart Committed by Lorenz Meier
Browse files

mc_pos_control: update _curr_pos_sp all the time

parent 9dc50515
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment