Quote:
Originally Posted by coreyjon
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.