Skip to content

Commit d2a4093

Browse files
committed
one too many electrical angle
1 parent 53927d8 commit d2a4093

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/StepperMotor.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,6 @@ void StepperMotor::loopFOC() {
301301
// if disabled do nothing
302302
if(!enabled) return;
303303

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

0 commit comments

Comments
 (0)