|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Better gyroscope?
Hey everybody!
We're using a gyroscope on our robot this year (I dont know the model number, but it's the "traditional" one you can see a picture of here). Unfortunately, this gyro tends to drift randomly sometimes (accumulating a few degrees over a few seconds), and at others it will remain almost perfectly stable. Has anyone come across this problem before? We'd like to use the gyro to aim our robot, so such drift is a problem. If anyone simply has suggestions for better gyroscopes that would also be welcome |
|
#2
|
|||||
|
|||||
|
Re: Better gyroscope?
The random drift you describe sounds like electrical noise. If the wiring from the sensor goes parallel to motor power wires, you might find the integrated value acting like that. Try shielded wire routed well away from high currents and see if it stops misbehaving.
|
|
#3
|
||||
|
||||
|
Re: Better gyroscope?
We have a NavX-MXP for navigation. The drift is 1 or 2 degrees over match time.
Lower quality gyros do tend to drift a lot, so what you see is probably normal. Make sure your gyro is calibrated correctly though. |
|
#4
|
||||
|
||||
|
Re: Better gyroscope?
Be extra careful not to move your robot while the gyro is calibrating. Typically that a few seconds is right after you turn the robot on.
|
|
#5
|
||||
|
||||
|
Re: Better gyroscope?
Not sure if the WPI library was modified recently, but in 2014, when we used a regular gyro, we had similar inconsistent drifting problems. With field-centric swerve, things sometimes got really ugly.
There's a discussion about that on this thread: http://www.chiefdelphi.com/forums/sh...62#post1399062 So I ended up writing my own Gyro code. If you're using LabVIEW, I posted my code here: http://www.chiefdelphi.com/forums/sh...55#post1416955 Those changes definitely improved things. In 2015, we got the NavX MXP, which offered further improvement, and worked great for our swerve last year. (and since the NavX comes with its own libraries, you don't need the code modifications I mentioned) |
|
#6
|
|||
|
|||
|
Re: Better gyroscope?
Hmm, so the gyro calibrates even before the code starts up? That's good to know.
|
|
#7
|
||||
|
||||
|
Re: Better gyroscope?
If you didn't notice, instantiating a gyro will stall the code for a couple seconds while it calibrates.
|
|
#8
|
||||
|
||||
|
Re: Better gyroscope?
If your team used your AndyMark First Choice points, you should have received an FRC Gyro & Accel board with your order free of charge. This sensor should provide much better performance!
|
|
#10
|
|||
|
|||
|
Re: Better gyroscope?
I can personally vouch for the navx-mxp and WCP Spartan Board. While in my experience (which involves a sample size of exactly two of each board, and is thus in anecdotal territory) the navx has significantly less drift, neither drifts significantly anyways and thus the difference is meaningless.
Last edited by AlexanderTheOK : 02-25-2016 at 01:10 AM. Reason: better grammar |
|
#11
|
|||
|
|||
|
Re: Better gyroscope?
Quote:
The navx has a magnetometer, so it can detect the earth's magnetic field and use that to adjust. That will result in less drift as you noticed, if drift is the metric you want to use for heading quality. (Full disclosure: I lead the design of the Spartan Sensor board and worked with WCP and others to make it legal this year and make it available for sale. Thanks a ton to RC for helping make this board available to everyone.) |
|
#12
|
|||
|
|||
|
Re: Better gyroscope?
Quote:
|
|
#13
|
||||
|
||||
|
Re: Better gyroscope?
Quote:
Quote:
![]() |
|
#14
|
|||
|
|||
|
We had the same problem last year,and switched to the Navx this year. We have no problems with drift at all.
|
|
#15
|
||||||
|
||||||
|
Re: Better gyroscope?
I went into last year a skeptic and I came out a believer: the NavMXP is going on every FIRST robot from now on until something better comes along (and I suppose that will be a long time, if ever because honestly, 1-2 degrees during a match is pretty much as good as you'll need for almost any algorithm I'm likely to use).
It just works. Very impressive performance. Dr. Joe J. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|