|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
Re: Anything better than a gyro?
Quote:
|
|
#2
|
||||
|
||||
|
Re: Anything better than a gyro?
Chris,
Do you recommend blending this two encoder technique with a gyro for increased redundancy/accuracy? In our experience, the kit gyro provided last season had very little drift, though we use it in short burst only before resetting it. |
|
#3
|
||||||
|
||||||
|
Re: Anything better than a gyro?
Different gyros have different maximum turn rates. Some that have been in the KOP in the past have been as low as 75 degrees/sec, which is easy to max out. If you used one of those, I would recommend getting a gyro better suited to your operation. We typically use gyros designed for 300 degrees/sec.
How much does your gyro drift when the robot doesn't move for 2 minutes? If your gyro isn't mounted stably, you'd have problems. Last edited by Joe Ross : 14-10-2011 at 22:06. |
|
#4
|
||||||
|
||||||
|
Re: Anything better than a gyro?
Quote:
For Breakaway we had a problem with one of our encoder wheels losing contact with the floor when we drove over the lip near the tower. That caused our heading to get all out of whack. We wound up adding a gyro so we used the encoders up until we were within a few inches of the lip, then we'd switch to the gyro. Whenever we were using encoder-based heading we would constantly reset the gyro heading to the encoder heading. Once we switched to the gyro heading, we would keep track of a correction constant for the encoder heading once we switched back to the encoder based heading. It worked pretty well. A project that I've been involved with at work combines inertial sensors (like the gyro) with wheel-based sensors. We have a novel way to combine them that I would love to share, but I'm sure my company wouldn't be happy if I did that. In general, if you can solve the problem with fewer sensors, you're better off due to simplicity. Only add more sensors to solve a problem you can't solve otherwise. |
|
#5
|
||||
|
||||
|
Re: Anything better than a gyro?
Try a complimentary filter - it biases measurements depending on the frequency of the input. The gyro would be useful for high-frequency measurements, but will quickly drift in a low-frequency environment. An encoder, likewise, will probably be susceptible to wheel slippage at high speeds, but will work well when speed is slow. A very, very simple two-tap complimentary filter is simply to do:
total_rotation = 0.5*gyro_new - 0.5*gyro_old + 0.5*enc_new + 0.5*enc_old; gyro_old = gyro_new; enc_old = enc_old; This is essentially a high-pass filter on the gyro with a low-pass filter on the encoder. This has the inherent flaw that it allows high-frequency noise from the gyro to enter the system, so a low-pass with a higher cutoff than the highpass filter might be required for the gyro first. Hope this is useful. Sparks |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|