View Single Post
  #5   Spotlight this post!  
Unread 19-03-2012, 12:42
Dusk Star's Avatar
Dusk Star Dusk Star is offline
team Chief Delphi junkie
AKA: Andrew
FRC #2611 (Jacktown Vectors)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Jackson, MI
Posts: 63
Dusk Star is an unknown quantity at this point
Re: Driving In a Straight Line Correction

Quote:
Originally Posted by androb4 View Post
That wouldn't work because the gyro doesn't give out a value of -1 to 1
Right, but the code runs at ~200 Hz, correct? so the change in angle is never really going to be that large. (assuming rate gyro)

If it is an absolute value gyro, then multiplying would not work- dividing by 30 if less than 30, and by the absolute value of the angle if the absolute value was greater than 30 would work.

Good luck, in any case!
Reply With Quote