爲了能夠得到比較乾淨的「車頭角速度」估測,我需要一個乾淨的「車中心角速度」。
To get a clean estimate of 'head angular velocity' (The place where my Beetle robotracer is controlled to follow the line), I need a clean body angular velocity.
基於使用 PD 控制來調整循跡時的角速度,我試了兩個方法,一個是用編碼器濾波後的兩輪速度信號相減 (右輪減左輪),另一個是使用陀螺儀。
Based on PD control algorithm to adjust the angular velocity command to follow the line, I tried two methods to obtain the body angular velocity. The first one is to use filtered encoder signals (right wheel velocity - left wheel velocity), and the other one is to use gyro signals.
可惜這兩個信號都不夠乾淨,以下是實驗結果。
It is a pity that both methods are not good enough, and the experimental results are shown in the following figure.
恐怕我得試試「基於誤差大小的變動比例增益」控制方法來循跡了。
I am afraid that I have to use gain scheduled proportional control based on the line following error to reach my goal.
