simplefoc / Arduino-FOC-drivers

Drivers and support code for SimpleFOC
https://docs.simplefoc.com/drivers_library
MIT License
146 stars 63 forks source link

Fixing sensor smoothing when sensor_direction is CCW #26

Closed Candas1 closed 1 year ago

Candas1 commented 1 year ago

Using motor.sensor_direction so the smoothing works on both sensor directions. It was discussed with dekutree64. Tested it by swapping phases to make sure it works in both directions.

runger1101001 commented 1 year ago

Thank you very much for this!!