simplefoc / Arduino-FOC-drivers

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

Created SmoothingSensor #21

Closed dekutree64 closed 1 year ago

dekutree64 commented 1 year ago

The example sketch is untested due to lack of hardware, but minimal changes from the original hall sensor velocity example so it should work.

I've copied the code style of CalibratedSensor since it's the only other wrapper we have, but my natural tendency would have been to use pointers instead of references for the wrapped sensor and motor, matching the style of FOCMotor's pointers to its linked sensor and driver. Let me know if you have a preference either way.