View Single Post
  #16   Spotlight this post!  
Unread 21-03-2009, 22:32
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,558
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Traction control: How do I tune a PID controller with variable gain?

Simply add 1 to the denominator of your ratio before dividing by it. This will elimate your infinity case.

Is pushing the joystick forward negative or positive? I can't remember.

I only ask because assuming you're accelerating, you're adding a positive value to your joystick. I'm curious if you should be adding that positive number, or subtracting it to decrease acceleration.

Last edited by Tom Line : 21-03-2009 at 22:36.