|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
We have mounted our gyro in the centre of the robot and ran the FRC Gyro Example. When we move the robot, angle values that gyro gives changes however when we stop robot gyro continues giving different angle values. Is this a problem or does gyro work this way?
Thanks in advance!!!! Last edited by cilginbilgin : 05-02-2012 at 15:06. Reason: correction |
|
#2
|
||||
|
||||
|
Re: Gyro Doesnt Stop!!!!
Quote:
|
|
#3
|
|||||
|
|||||
|
Re: Gyro Doesnt Stop!!!!
There is a brief calibration performed when the gyro is first initialized. If the robot is moving during that time, the calibration will be incorrect and the computed heading will continue to increase or decrease when everything is stationary.
|
|
#4
|
|||
|
|||
|
Re: Gyro Doesnt Stop!!!!
Quote:
We ran the code and didnt move the robot for five minutes. During that five minutes we read 0.015... degree from gyro. Than we moved the robot and when we stopped the robot we had the same problem. Gyro continued giving different angle values. Last edited by cilginbilgin : 06-02-2012 at 07:09. Reason: correction |
|
#5
|
||||
|
||||
|
Re: Gyro Doesnt Stop!!!!
we noticed that two. When you turn the robot or drive in circles, it keeps going either up or down. Just Reset the gyro and Set the Gain again before you are going to use it.
|
|
#6
|
|||
|
|||
|
Re: Gyro Doesnt Stop!!!!
I thought gain was a constant value which is 0.0125 voltsperdegree/second. At least in the example gain is 0.0125 voltsperdegree/second. Should we change this value? When we reset the gyro it continues going up or down.
|
|
#7
|
||||
|
||||
|
Re: Gyro Doesnt Stop!!!!
just create a constant and leave it as the default. I don't know why but if we didn't do this each time we reset it, it doesn't work at all (When you turn it on it would just keep going up to 5000 degrees without even driving in circles). When we set the gain, it worked for what we needed
|
|
#8
|
|||
|
|||
|
Re: Gyro Doesnt Stop!!!!
Quote:
What might be the problem?? |
|
#9
|
|||||
|
|||||
|
Re: Gyro Doesnt Stop!!!!
Quote:
How do you have it wired? How many wires are connected, and where does each of them go at each end? |
|
#10
|
|||
|
|||
|
Re: Gyro Doesnt Stop!!!!
Quote:
We have wired it according to the pdf above. |
|
#11
|
|||||
|
|||||
|
Re: Gyro Doesnt Stop!!!!
That doesn't answer my question at all. Please look at your wiring and describe for me where the wires are connected on the sensor board, and where each of those wires goes.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|