![]() |
Gyroscope Not Returning Degrees
We're programming a gyroscope on the robot and we're not getting a readout in degrees. The sensitivity is set to 0.007 (as referenced in the manual), the gyro is connected correctly and mounted on the robot. The readout we get is also not consistent because it decreases while stationary and we don't think it's drift. We tested sample code and read the manual but we're still having a problem.
|
Re: Gyroscope Not Returning Degrees
Quote:
Quote:
Quote:
|
Re: Gyroscope Not Returning Degrees
Quote:
Quote:
Quote:
Code:
package com.github.manitourobotics.gyroscopetesting; |
Re: Gyroscope Not Returning Degrees
1 Attachment(s)
What voltage do you measure with a multimeter between the rate pin and ground? It should be approximately 2.5v.
I like the LabVIEW gyro wiring diagram (attached), as it's a little more clear which wire goes where on the analog breakout. |
Re: Gyroscope Not Returning Degrees
I don't have the wpilib source avaialble, so I can't check to see if this should make any difference at all, but is there a reason you're setting the sensitivity repeatedly (in teleop periodic)?
The following is essentially what we've done every year with the gyro: Code:
import edu.wpi.first.wpilibj.Gyro; |
Re: Gyroscope Not Returning Degrees
Thanks for the replies! After testing the gyro with a multimeter and on another cRIO unit, we discovered that the analog breakout was faulty and replaced it with another one. The gyro is working and we're getting a responsive and usable readout.
|
Re: Gyroscope Not Returning Degrees
Quote:
|
| All times are GMT -5. The time now is 22:33. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi