|
Gyro class issue?
I'm using an Analog Devices ADW22307 gyro and haven't been able to get a reading out of it using the gyro class.
We are programming in Java and the code is:
Gyro gyro = new Gryro(1);
...
gyro1.reset();
angle1 = gyro.getAngle()
When we try to print the value to the SmartDash we get nothing. We tried several other gyros with no luck. We tried defining an analog input channel to directly get the voltage output from the gyro, and that works. The voltage is 2.45V when the gyro is stationary as expected, and then we see it increase or decrease if rotated the gyro, so it seems the gyro itself is working.
Has anyone else run into this problem?
|