simplefoc / Arduino-FOC

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

change sine implementation to deku65i version #285

Closed runger1101001 closed 1 year ago

runger1101001 commented 1 year ago

We have already discussed it - this is now the PR for the sine optimisation.

It includes the following changes:

1)

2)

Many details can be found in this thread in the forums, if one has the patience to follow it: https://community.simplefoc.com/t/embedded-world-2023-stm32-cordic-co-processor/3107

Tested on SAMD21, where it seems to give 5-10% overall performance boost to my main loop (velocity mode, sine-commutation, no current sense).

askuric commented 1 year ago

Nice! I'm in and I'm looking forward to testing it.

runger1101001 commented 1 year ago

Perfect, so I will merge it, and I'll also ask in the forum thread if people want to test the dev branch on their setups...