Thread: PID Help
View Single Post
  #6   Spotlight this post!  
Unread 21-01-2015, 00:04
Skyehawk's Avatar
Skyehawk Skyehawk is offline
Nuts N' Bolts
AKA: Skye Leake
FRC #0876 (Thunder Robotics)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2011
Location: Northwood, ND
Posts: 204
Skyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to all
Re: PID Help

I am not the most knowledgeable on this subject but, you seem to be taking the distance out of the encoder, since a drivetrain is set up for continuous motion shouldn't your PID be targeting a specific rate at which the wheels should be spinning? (assuming this is for dynamic input, such as driving in teleop, not autonomous movement) There is a rate output on the encoder, so do you want your code to look a little more like this?

Code: http://i.imgur.com/5Jja5Ce.png

What I have written here may just be a load of garbage. It has not been tested, it just seems logical to me. I tried to comment my thought process.

Last edited by Skyehawk : 21-01-2015 at 00:07.
Reply With Quote