|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Gyro's angle value going up
Quote:
I've used similar gyros in the past and was not happy with their performance. In my experience, the Analog Devices gyros seem to give much better results. It's certainly possible that the newer models from Pololu have improved, and I would be interested hearing your opinion of them. Mike |
|
#2
|
|||||
|
|||||
|
Re: Gyro's angle value going up
Quote:
|
|
#3
|
|||
|
|||
|
Re: Gyro's angle value going up
If you want to null out a small rate like that, you can use the setDeadband method in the Gyro class. we were a little confused since it shows up in the c++ version of the code, but not the java version. Look at the gyro.java code posted here:
https://usfirst.collab.net/gerrit/gitweb?p=allwpilib.git;a=blob;f=wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/Gyro.java;h=ea1e1cc301c71243e091206312fa281fb2f5e5 87;hb=HEAD The setDeadband is not made public, I don't know why. we just copied the code as a newGyro.java class in our project and made it public. It seems to work fine so far. You will lose a little accuracy with a larger deadband, but if it is small, it most likely won't be a problem. Hope this helps, Lennie |
|
#4
|
|||
|
|||
|
Re: Gyro's angle value going up
Quote:
If you are looking for a replacement for the old KOP gyro, either the EVAL-ADXRS642Z or the EVAL-ADXRS652Z should work. Both are 0-5v analog gyros and should be a fairly easy replacement for what you are used to. In the past, I've also used an Arduino to do the integration of the gyro rate signal for both analog and SPI gyros - so that is a valid option as well. Mike |
|
#5
|
|||||
|
|||||
|
Re: Gyro's angle value going up
Quote:
|
|
#6
|
|||
|
|||
|
Re: Gyro's angle value going up
Gus,
The EVAL parts can be ordered singularly at $50 or $70 depending on the model. Look near the bottom of the web page. Mike |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|