View Single Post
  #6   Spotlight this post!  
Unread 16-11-2014, 13:27
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: PID function to reduce drift

You should not shut off your pid loop when you reach your target. Instead, you should make sure that your error is near zero, and the rate at which your error is changing is near zero.

You should also increase the D gain of your PID controller to decrease the overshoot you're describing. The D gain compensates for the robot's tendency to keep moving when power applied to the motors is zero.
Reply With Quote