Quote:
Originally Posted by eccmaster
Hello
We did get the 300dps from spark fun to use for 90 degree turns. I did notice that when we use the gyro functions in easyC, instead of getting readings of 1/10th of a degree with the gyro that came in the kit of parts (90 degrees = 900) we got only steps of 1 degree (90 degrees = 90). Why is that so?
|
Did you change the GYRO type? When you intialize the gyro, you have to set the gyro type to scale it correctly.
Also, if you are using the gyro to drive straight, do not use the gyro easyC function (which returns DEGREES), instead, read the raw analog value from the gyro. This will be the "rate" of turn. If your not turning, the analog will be ZERO. If you start to turn, the gyro will sense the rate of your turn and you can use that as a error to adjust your PWM outputs.