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?
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.
When we stop the robot the change in angle is the same as when we moved the robot. Mostly it is a lot more than a couple of degrees per minute.
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.
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.
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.
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
When we turn the robot on, gyro doesnt go directly to 5000 degrees. Once we move the robot, angle of the gyro starts changing and doesnt stop even if the robot is stationary. We are deploying the Gyro Example Code in Labview, we tried to wire a constant to set gain as you said whereas it didnt work for us.
What might be the problem??
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.