View Single Post
  #17   Spotlight this post!  
Unread 28-12-2016, 14:44
D.Allred's Avatar
D.Allred D.Allred is offline
Registered User
FRC #4451 (Rat Rod Robotics)
Team Role: Mentor
 
Join Date: Jun 2009
Rookie Year: 2009
Location: Greenville, SC
Posts: 197
D.Allred has a reputation beyond reputeD.Allred has a reputation beyond reputeD.Allred has a reputation beyond reputeD.Allred has a reputation beyond reputeD.Allred has a reputation beyond reputeD.Allred has a reputation beyond reputeD.Allred has a reputation beyond reputeD.Allred has a reputation beyond reputeD.Allred has a reputation beyond reputeD.Allred has a reputation beyond reputeD.Allred has a reputation beyond repute
Re: Drivetrain PID tuning

Quote:
Originally Posted by ollien View Post
How do you accomplish this? Do you just set your setpoint proportional to the position of the stick?
We did not use it to execute a turn or follow a path while driving. It was only used to make a stationary turn or maintain a heading for a "drive straight" mode similar to the example in your original post.

For tele-op drive straight, a button on the xBox controller sets the current heading as the desired heading value then replaces the driver's rotation joystick value with the output of the heading proportional controller. Essentially the driver is only controlling thrust at that point and the loop maintains heading.

For our use, a proportional only loop worked but you could set up PID and experiment with the tuning.

David
Reply With Quote