EFeru / hoverboard-firmware-hack-FOC

With Field Oriented Control (FOC)
GNU General Public License v3.0
1.12k stars 932 forks source link

Speed mode closed loop, how to change loop parameters, if there any ? #424

Closed ZzeMR closed 1 year ago

ZzeMR commented 1 year ago

Variant

USART

Control type

FOC

Control mode

Speed

Description

I am using this variant to control a heavier robot using foc spd mode. The robot speed oscillates at the beginning of any new command. I want to change the loop parameters but i can't find their location, how does the spd converts into the cmd for each motor, i can't find any PID loop in the code that takes the speed and converts it into torque/voltage or pwm.