![]() |
Re: Problems with the Gyro
Quote:
-Kevin |
Re: Problems with the Gyro
I changed the update rate to 2 and the bias was 512. I don't know why, but it still not measuring the angle correctly. The anglular rate is not stable, and the angle just keeps incrementing without any sense.
gyro_rate jumps from negative to positive numbers as I turn the gyro, is doesnt become 0 when I stop turning it. Im using the default code, without any modifications. It is really a weird. Im starting to become frustrated.... |
Re: Problems with the Gyro
Quote:
Looking back through the thread, I was wondering what kind of gyro chip you are using? If it's an Analog Devices, are you using it in conjunction with it's evaluation board? Or have you created your own custom installation? In the past we've used the 150 and 300 deg/sec chips and simply sampled them with a Get_Analog_Value function in the Default_Routine. With the chip sitting still we've often seen the value jump around. So, even though it introduces an error, we'd create a small deadband. As long as the value jumped around inside the deadband, we'd declare the value to be neutral. Outside we'd use it. It would be one way to keep your integration from running away, while you try to figure out why it is jumping around. I don't have a lot of experience with Kevin's code, but I do believe that the methods he uses would greatly reduce this effect. Thanks, Eric |
Re: Problems with the Gyro
Quote:
|
Re: Problems with the Gyro
Oh yeah....should have guessed that. Well the K.O.P gyro is only 80deg/sec, which is REALLY slow for an FRC chassis. That might explain gyro_rate jumping around like you observed.
So the chip will swamp at something like 0.22 rev/sec... I was going to suggest bench testing it by taping it to an old LP record player turntable- to get a reasonably steady rotation- but even that will swamp the gyro. ...hmmmm I'll have to take a closer look at Kevin's code at this point. Perhaps someone whose used his code in competition could jump in? Eric |
Re: Problems with the Gyro
Make sure your gyro.h file is completely correct. If you haven't chosen the ADXRS150 (equivalent to yours) as your gyro, you will naturally have problems (I think it's the default, but I can't remember).
Since you said the gyro is having issues with the rate, you might want to try adjusting the gyro deadband as well. Ours worked fine at the default 8, but we were using the ADXRS300, which has less than half the sensitivity of the gyro you're using. Other than that, keep trying the instructions in gyro.h and the gyro readme for calibrating it. I'm hoping this helps some. |
Re: Problems with the Gyro
Quote:
|
| All times are GMT -5. The time now is 20:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi