Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spikes in motor velocity when passing 0 position #91

Open
jviereck opened this issue Jun 18, 2021 · 1 comment
Open

Spikes in motor velocity when passing 0 position #91

jviereck opened this issue Jun 18, 2021 · 1 comment

Comments

@jviereck
Copy link
Contributor

This is a long/known issue with the velocity reported by the cards. Basically, when passing the zero position of the motor, the velocity jumps and a spike shows up in the velocity plot. See the plot enclosed which is from squatting motions on solo12 using a slider box.

On the micro drivers we are running a velocity estimator. My best guess is that this estimator is buggy with respect to jumping at 2 pi angles.

image

@luator
Copy link
Member

luator commented Jun 21, 2021

Unless this is handled differently in the SPI-version of the motor board, the velocity is estimated by the SpinTAC library (search for STPOSCONV_getVelocity/STPOSCONV_getVelocityFiltered in the code) which is unfortunately closed-source, so I'm afraid this will be difficult to debug :( There might be some parameters to influence its behaviour, I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants