How to set the value of hFinaltorque?
Hello Everybody,
MCSDK:6.3.0
CubeMX: 6.3.0
Workbench : 6.3.0
Motor Pilot : 1.2.9
Power Board : IHM08M1(Rshunt=0.01Ω)
Control Board : NUCLEO-G431RB
Motor : BLDC 26w 24v/8 pole pairs / rpm=4k / rated current=1.8A/hall sensor
I am currently testing torque control, and I am a bit confused about the hFinalTorque setting in the MC_ProgramTorqueRampMotor1 API.
I would like to set the Target Torque to 0.02.
According to the formula provided in the API:
current(digit) = (0.02 * 65536 * 0.01Ω * 5.18) / 3.3 = 20.57 (rounded to 21)
Should hFinalTorque be set to 21 or 210?
Additionally, do I need to manually enable the timer and PWM? (I have already used the Workbench to generate code and CubeMX to generate the project.)
