EFeru / hoverboard-firmware-hack-FOC

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

Increase parameters r_errInpTgtThres and t_errQual #367

Closed Firess073 closed 1 year ago

Firess073 commented 1 year ago

Variant

PWM

Control type

FOC

Control mode

Speed

Description

How to correctly increase r_errInpTgtThres and t_errQual parameters in the new version of the firmware?

Candas1 commented 1 year ago

Hi,

Can you give a bit more context why you want to do that ? What are you calling new version of the firmware ?

Firess073 commented 1 year ago

Hello.

I built a 4WD platform with two boards from an RC gyroscooter. During its off-road movement, there are moments when the platformer runs into a small obstacle and cannot overcome it and gives error 001 (blocked engine), although the obstacle is not big and the platform should have easily overcome it. I read in the WIKI that it is necessary to increase the r_errInpTgtThres and t_errQual parameters in order to be more sure that the platform will go off-road without this error. I use the latest version of the firmware that is available on Git, but I did not understand how to increase these parameters. Tell me, please, how to do it?

Candas1 commented 1 year ago

As mentioned here, you need to increase those values in the relevant file, the link point directly to the value, what do you not understand ? Try doubling value.

Worst case just DIAG_ENA if it bothers you, it's also mentioned in the wiki.