![]() |
Re: Picking a gyro for field-centric swerve control
If you are going to use two gyros, I don't think you should pick and choose between which one you should look at - you should look at both of them!
Somebody a few posts back mentioned using high-pass and low-pass filtering, something I heartily recommend. Subjecting a coarse gyro to a low-pass filter and a fine gyro to a high-pass filter and combining the values should lead you to a value that is extremely accurate, assuming the coarse gyro can handle shocks (robot getting slammed around) appropriately. Ideally, you'd want a sensor that does not accumulate drift (like a compass) in place of the coarse gyro, but it sounds like the EM situation on the robot is too intense to use magnetic compasses. |
Re: Picking a gyro for field-centric swerve control
I'd like to caution against live-match calibration. The drivers already have a bit to worry about with the game itself and 2 minutes FLIES BY like there's no tomorrow. Having to line up and recalibrate a sensor on the fly seems simple enough, yet getting the calibration correct during a match will be near impossible without taking many many seconds of match time.
|
Re: Picking a gyro for field-centric swerve control
Quote:
|
Re: Picking a gyro for field-centric swerve control
We used the Honeywell HMC6352 compass (I2C), with a look-up compensation table, and two gyros (different sensitivities).
The general scheme for the look-up table was to put the robot on a rotating table outfitted with an encoder on it's shaft. The (encoder - compass) errors were written to the table. The table was indexed using the actual compass reading. The compass ran at a max of 20 Hz, but the idea was to read it when the rotation rate was low, reset the gyros, and use the gyros (+ last compass) between compass readings. On the table we were within +/- 3 degs at our max robot rotation rate. And at those rates the compass alone at 20 Hz was almost as good (eliminates a chunk of coding). The compass needs to be several inches away from the nearest ferrous (or magnetic) component; and some mu metal shielding can be used if needed. Keep the mu metal away from the compass too! The key is to find a mounting location where the compass readings change monotonically as the robot rotates, otherwise you have a multi-valued function that can't be easily compensated (if at all). Knowing absolute field heading is of course only one part of this control system. David |
Re: Picking a gyro for field-centric swerve control
Quote:
|
Re: Picking a gyro for field-centric swerve control
Quote:
When I was doing RF, we kept a bunch on hand. |
Re: Picking a gyro for field-centric swerve control
Quote:
|
Re: Picking a gyro for field-centric swerve control
Quote:
|
Re: Picking a gyro for field-centric swerve control
Quote:
|
Re: Picking a gyro for field-centric swerve control
Quote:
And here I thought you were talking about Limp Bizkit and Korn. |
Re: Picking a gyro for field-centric swerve control
Here is what we used:
http://www.lessemf.com/mag-shld.html#276 To use it effectively you should read up on it a bit before using it. David |
Re: Picking a gyro for field-centric swerve control
Quote:
|
| All times are GMT -5. The time now is 07:20. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi