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

Adjust phase when close to target, allow read_position to work while in closed loop mode #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jan 12, 2020

  1. Add phase adjust / deadband for PID controller

    Currently the PID loop always uses either + or - maximum phase advance.
    This means that when the PID output value is 0, there is no torque applied.
    This causes the motor to zoom past the setpoint if there is no external friction
    to stop it, which in turn causes a lot of oscillations.
    
    This commit adjusts the phase angle when PID output is close to zero, which
    acts to brake the motor and allows it to stop accurately between steps also.
    PetteriAimonen committed Jan 12, 2020
    Configuration menu
    Copy the full SHA
    a41ce03 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3c4c7a7 View commit details
    Browse the repository at this point in the history