simplefoc / Arduino-FOC

Arduino FOC for BLDC and Stepper motors - Arduino Based Field Oriented Control Algorithm Library
https://docs.simplefoc.com
MIT License
1.95k stars 511 forks source link

motor.run() #336

Closed runger1101001 closed 6 months ago

runger1101001 commented 8 months ago

In API 2.5, replace motor.loopFOC() and motor.move() with motor.run(), which does both.

then we have a loop like this:

void loop() {
    motor.run();
    commander.run();
}