The default gyro gain is probably not the same as the gyro you are using. For example, in LabVIEW, the default gain (sensitivity) is .0125 v/deg/sec. The ADXRS610 gyro my team used last year was .006v/deg/sec. You should be able to sensitivity on the data sheet of the gyro you are using. Once you find the right value, you should explicitly set the gain in the software.
There are a few ways to do it. Here’s one. If you double-click on the Gyro Open vi, you’ll see a Gyro Const vi in it. Remove the wire from the top of the Gyro Const to the Gain (VoltsPerDegree/Second) at the top of the GyroDevRef bundle and replace it with your own constant that matches the device you’re using.
But it’s a lot easier and cleaner to use the Set Gain vi in the gyro palette.
On this same topic … we have the Gyro wired properly and sensitivty set properly via the C++ method and are getting readouts via the GetAngle method. The problem is that the readouts are all over the map.
One time while the Gyro is at rest, it’s returning a steadily increasing value well into the thousands if we let it keep going.
Another time while at rest, the reading is as expected, a few degrees positive and negative when twisting slowly about the z-axis.
Sometimes when reading the voltage return on the PWM, we get the standard 2.5v at rest, but then for no reason, the voltage jumps to 4.6+ and seems to get stuck there until we “jostle” the gyro.
Not sure if this is a bad Gyro and we don’t have a 2nd one to test if this is the case. Any ideas?