Add TODOs

Avoid transients when entering closed loop also on Circular position mode.
Phase interpolation is snapping to hard.
This commit is contained in:
Oskar Weigl
2020-07-18 19:05:34 -07:00
parent 222d9d11bc
commit 8c85d2fe79
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -529,6 +529,7 @@ bool Encoder::update() {
if (snap_to_zero_vel || !config_.enable_phase_interpolation) {
interpolation_ = 0.5f;
// reset interpolation if encoder edge comes
// TODO: This isn't correct. At high velocities the first phase in this count may very well not be at the edge.
} else if (delta_enc > 0) {
interpolation_ = 0.0f;
} else if (delta_enc < 0) {