You are here

speed control anti windup improvement

2 posts / 0 new
Last post
RSR
Offline
Last seen: 5 months 4 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: 1 day 17 hours 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.