Thread: PID Issue
View Single Post
  #2   Spotlight this post!  
Unread 29-01-2015, 07:29
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: PID Issue

Quote:
Originally Posted by rclothier View Post
The robot is on blocks, so there's no real load on the wheels; shouldn't it work anyway? (We don't want to put it on the ground when it's acting crazy.)
Placing the robot on the floor might surprise you with how well-behaved it becomes. You're trying to tune a velocity PID when the system is essentially unloaded. As you have discovered, such a system is very unstable. There is not enough damping to keep it from immediately overshooting the set point and oscillating wildly.

If you put some load on the wheels, you will get much better results. You could also try to introduce some artificial inertia into the system by limiting the rate of change of the motor commands.
Reply With Quote