|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
Quote:
Using trapezoidal integration, would that eliminate the errors? Or is there anther way to do it without the problems you describe? I've read that with robotic probes that go into caves and such, they use this kind of plotting system, an accelerometer and a gyro.. |
|
#2
|
|||
|
|||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
|
|
#3
|
||||
|
||||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
|
|
#4
|
|||
|
|||
|
Re: Plotting Location w/ Accellerometer Project
I was looking for a decent app on the iPhone that would work to experiment with. The closest I can come to is one called Vibration. I was using it to measure how the cell phone buzzed and compare that to an external accelerometer reading.
Anyway, the app will show the three axes and it calibrates to subtract out gravity at the initial orientation. If you leave the phone sitting still and run a five second recording, you should get relatively flat lines and that's expected. The integrated area should be zero. If you run the app and move the phone to the left and right, you'll see similar cancellation. But it probably won't quite zero. Next, during a sample recording, walk from your chair to the front door. Each step looks like a heartbeat, on each axis. And yeah, they sort of cancel out, but where is my predictor of my acceleration that tells me how far I walked. It is a tiny bump at the beginning of that heartbeat signal. Then run a sample and simply tilt the device a bit. You'll see that a five or ten degree tilt offsets the line quite a bit. And worse, it stays there for the entire sample. The integration of the tilt is huge. Anyway, if you can find the app, or something similar, it is helpful in understanding why IMUs are hard. After all, if it was easy, the phone or Garmin would do this instead of or in addition to GPS. Greg McKaskle |
|
#5
|
||||
|
||||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
What do you think of the encoder idea? I mean, you don't have to worry about gravity or forces or anything with them, just rotations of the wheels. |
|
#6
|
||||
|
||||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
If you're using a skid-steer drivetrain, the relationship between the powered-wheel encoder readings and the actual vehicle movement during turns gets muddied considerably in ways that may not be easily predictable. Probably not a good solution. *ie independent steering and drive for each wheel, with properly programmed steering angle and wheel speed for each wheel. Last edited by Ether : 02-10-2013 at 11:17. |
|
#7
|
|||
|
|||
|
Re: Plotting Location w/ Accellerometer Project
While not accelerometer related, there have been a number of posts over the years describing issues with the "drift" associated with gyros over time and the error this causes when calculating field position. One method I've experimented with that seems to work well to compensate/eliminate most of this error utilizes two gyros. A high rate gyro for most turns (250 to 500 deg/sec), and a low rate gyro (30 deg/sec) for higher accuracy in slow curves and determining when the robot is stationary (for zero compensation). With the higher resolution of the low rate gyro, it is much easier to determine when you can automatically adjust the zero point. This method does break down when the robot is in continuous motion, but typically there are periods of time within a match (and certainly before the match starts), where the gyro can update its zero point. During bench testing, I was able to achieve a heading drift of under 2 degrees per hour when stationary. The heading calculation algorithm would automatically switch between the gyros at a 20 deg/sec rate (67% of full scale of the low rate gyro).
Mike |
|
#8
|
||||
|
||||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
Quote:
|
|
#9
|
||||
|
||||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
Polar coordinates lend themselves to this use (angle + distance). |
|
#10
|
||||
|
||||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
|
|
#11
|
||||||
|
||||||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
Quote:
|
|
#12
|
||||
|
||||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
From what everyone is saying about Gyros (the slipping and such), it sounds like this method of plotting position would be the most accurate The next challenge would be plotting the position on a sort of mini-map on the driver's screen. How do you guys think one would go about accomplishing this? One would have to be able to map the location in scale to the diagram's width and height, right? Or is there a less CPU-intensive method? I'd be willing to try and write up a separate program, but it'd be cool to get it on the dashboard, if possible ps: thank you guys for all your help! |
|
#13
|
|||
|
|||
|
Re: Plotting Location w/ Accellerometer Project
I think the mini-map idea both has merit and is not overly CPU-intensive. I suppose it would be similar to teams that use line overlays in aligning their shooter. If you keep the total x and y components (or r and theta, whichever floats your boat) as variables stored on the robot, it should be a relatively easy task to use those values to add a point image overlay to a stock background map on the dashboard. The overlay would probably not be that taxing, provided you are careful with your implementation.
|
|
#14
|
||||
|
||||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
Quote:
Last edited by Invictus3593 : 03-10-2013 at 23:48. |
|
#15
|
||||
|
||||
|
Re: Plotting Location w/ Accellerometer Project
Quote:
You might want to point out that 3 follower wheels are required if the vehicle has strafing capability. Also, with 2 followers it is important to realize that they cannot discriminate among the three motions illustrated in the attachment (showing three skid-steer vehicles each with a different center of rotation). This can be mitigated by placing the followers so that the midpoint between them is on the center of rotation of the vehicle. Last edited by Ether : 03-10-2013 at 16:05. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|