Describe the bug
when motor is stationary velocity doesnt go to 0
SC60228 sensor
pipico
Platformio
seems like this code is to blame
if (fabsf(delta_angle) > 1e-8f) {
velocity = delta_angle / Ts;
vel_angle_prev = angle_prev;
vel_full_rotations = full_rotations;
vel_angle_prev_ts = angle_prev_ts;
}
return velocity;
in Sensor.cpp:GetVelocity()
Describe the bug
when motor is stationary velocity doesnt go to 0
SC60228 sensor
pipico
Platformio
seems like this code is to blame
in Sensor.cpp:GetVelocity()