View Single Post
  #15   Spotlight this post!  
Unread 21-03-2009, 00:09
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: Traction control: How do I tune a PID controller with variable gain?

Hi, Well I've done some testing of the code and for some reason, the values from the PID controllers aren't being passed into the TeleOp Execute loop to add to the joystick values. I submitted another question to the Labview forum about this

I decided to modify my correction method from a few posts ago to having the PID output always modify the joystick output sent to the controller based on the slip ratio calculated. I attached a pdf of my code so that you can see what I mean.

1) How does this sound? Is there a better way?

2) I noticed that the slip ratio goes to infinity a lot, how do you guys deal with the infinity case since it will drive the PID crazy?
Attached Files
File Type: pdf traction_control2.pdf (134.8 KB, 84 views)