View Single Post
  #6   Spotlight this post!  
Unread 17-04-2012, 11:30
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,817
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: BEI Gyrochip AQRS - just counting up?

Quote:
Originally Posted by coreyjon View Post
As far as setting things like gain during initialization....I'm not - should I be?
If you're not setting the sensitivity, then you're getting whatever the default is (Gyro.h: kDefaultVoltsPerDegreePerSecond = 0.007, which maps to a 300 degree/sec gyro). It certainly won't be the same between the old BEI gyro and the one you're expecting in the mail.

You can use the SetSensitivity method to make sure it matches the gyro you are currently using.

With an incorrect gain, the GetAngle value will also be incorrect.
How much of a problem that is depends on how and for what purpose you plan to use the gyro.
If you're just using it to drive straight, then your correction coefficent can overcome the incorrect angle reading-you're looking for a zero angle all the time. You just won't be able to swap gyros without recalculating/experimenting with a new coefficent.
If you're using the gyro to turn to a specific angle, then it won't work at all. Well, it will turn to an angle, but 90 degrees will read as something else, e.g., ~21 degrees.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-04-2012 at 15:11.
Reply With Quote