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

Feat new cs align #422

Merged
merged 11 commits into from
Jul 20, 2024
Prev Previous commit
Next Next commit
one too many electrical angle
  • Loading branch information
askuric committed Jul 13, 2024
commit d2a409338f9d796c4ff86ecad0f42b576d05e522
5 changes: 0 additions & 5 deletions src/StepperMotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,6 @@ void StepperMotor::loopFOC() {
// if disabled do nothing
if(!enabled) return;

// Needs the update() to be called first
// This function will not have numerical issues because it uses Sensor::getMechanicalAngle()
// which is in range 0-2PI
electrical_angle = electricalAngle();

// Needs the update() to be called first
// This function will not have numerical issues because it uses Sensor::getMechanicalAngle()
// which is in range 0-2PI
Expand Down