You are here

speed control anti windup improvement

2 posts / 0 new
Last post
RSR
Offline
Last seen: 4 months 3 weeks ago
VESC Original
Joined: 2017-05-24 12:46
Posts: 38
speed control anti windup improvement

mcpwm_foc.c line 2480:  utils_truncate_number(&i_term, -1.0, 1.0);

The i_term should not be truncated to 1.0, but rather to (1.0 - min(1.0, abs(p_term)) or something like that.

Reason: Reduce overshoot by truncating i_term to a lower value.

benjamin
Offline
Last seen: 2 weeks 46 min ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

Thanks for the tip, I will add it in the next firmware.