simplefoc / Arduino-FOC

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

[BUG] Issue changing control and torque modes using commander #332

Open BRTFTW opened 1 year ago

BRTFTW commented 1 year ago

Running 2.3.1 with Driver 1.0.5 I encountered an issue using the webcontroller trying to set the correct parameters. Doing so, I changed the control and torque mode multiple times on the run, which resulted in the behavior described in this issue: Bug report on Webcontroller repo

I run an Nucleo- STM32G474REX in combination an SimpleFOC Shield, AS5047P and a T-Motors GL25 motor. FOC_Monitor_command.ino.txt

For me it looks like Arduino-FOC is causing the encountered issue, failing to correctly react to the changing MT command and thus not reporting the current mode to the webcontroller.

Sometimes a hard reset is needed to be able to connect to the controller vie the webcontroller.

runger1101001 commented 1 year ago

Thank you for reporting this! We'll look into it, but it might take a little while...