Quote:
Originally Posted by Alan Anderson
We did it. But it's not going to be on our competition robot.
We put a strip chart on the Dashboard to display the RPM as measured by the encoder. Our programming students decided they weren't satisfied by the amount of overshoot it showed, and implemented a simple PID controller. A few minutes of tuning later (plus some tweaking of the algorithm to limit integral windup), it works great.
The continual loud snaps and clicks from the gearbox when using bang-bang were rather disturbing to most people hearing them. The simple PID sounds smooth as silk, appears to bring the motor up to speed just as fast, and recovers quickly from a brief additional load without problem.
|
We found the same. The bang-bang sounded horrible, and had a bit of a sine wave on our graphs. This was probably a result of an update time that was too slow. It was easier to review our code from last year and implement something similar. We don't even have to retune it from practice to comp bot.