Closed nyxrobotics closed 1 year ago
Implement two functions counterTDRaw and counterTDVariableWindow to be able to switch between them with rosparam
This program is converting a number subtracted by uint16_t to a double, so -1 is 65535. It seems that the gain was diverging each time the counter increased by 65536.
Abstract
The value of velocity is discrete because the low resolution angle is differentiated in a short time. Extend the sampling period when the change in angle is small and smooth the velocity values.
Reference:https://jsdkk.com/blog/mugita/?p=458
Purpose
To prevent PID control from vibrating
Implementation Details