Add currentsense.enable/disable#365
Conversation
|
I think this can be merged, to allow us to fix the "current kick" after enable on STM32... |
|
Hi Richard, I wanted to start implementing current sense enable/disable on STM32, but after I created a branch on my fork based on the project's dev, I end up with a arduino-FOC and a Simple FOC folder in the dependencies: It looks like:
Do you have the same issue ? |
|
Is maybe one of them the original project dependency? SimpleFOC is the project and library name, but Arduino-FOC is the actual folder/repository name. At a guess I'd say one of them comes from a git pull, and the other via library dependency or symlink? I can't say I have the same issue, and when I check the dev branch online I can't see any trace of SimpleFOC within the drivers? |
|
ok I won't waste too much time for now. So just to understand, how should I declare the enable and disable function ? |

Add a enable() and disable() function to currentsense, and reset the PIDs on a motor.enable().
See discussion here:
https://community.simplefoc.com/t/read-a-potentiometer-continuously-on-stm32-and-analogread/4214/90