![]() |
Robot Accelerometer
Hello I am trying to make a code that will take the roboRIO's built in accelerometer and a Gyroscope so we can know how far the robot has traveled and the direction it is facing. The code will need to be integrated into the autonomous code to make the robot stop after a certain distance has been traveled and the angle it is facing.
|
Re: Robot Accelerometer
Quote:
It would be better to put encoder(s) on the wheel(s). |
Re: Robot Accelerometer
The September specs for the roboRIO showed that it included an accelerometer but I don't believe it included a gyro. They may have snuck it in when I was not looking, but one reason the gyro may not work is that you need to physically add one.
Keep in mind that a gyro measures the rotation about the point where the sensor is located, so putting a gyro inside the roboRIO may be overly restrictive in that you would want to locate it at the center of rotation of the robot. A remote gyro makes more sense to me. |
Re: Robot Accelerometer
Integrating the accelerometer twice does not work very well your better off using the encoders on andymark because they are really simple to use! If you need help calibrating them and finding the distance per pulse let me know! I got my teams calibrated so they were off 1 inch per 6 feet!
|
Re: Robot Accelerometer
My team is experimenting with this idea. We're using mecanums.
Because the mecanums might slip some as they drive, and because the rate of slip may be variable, encoders on the wheels may not be very accurate. We're going to try adding small, non-driven wheels in the center of the robot, perpendicular to each other. Each one will be on a pneumatic powered arm and be connected to an encoder so we can measure how far the robot has traveled in the x and y directions. |
Re: Robot Accelerometer
Quote:
|
Re: Robot Accelerometer
Well since no one has actually answered the question just speculated around the question :P I guess its up to me. That was one of the /very/ first things I did with the new roboRIO even before tank drive (being a 2nd year First'er and a 1 year VEX'er). After finding the javadocs it was very easy. I found the java docs here. And for the built in accelerometer I found it here. I have yet to find any kind of built in acceleromoter in the new roboRIO but MESSAGE ME IF YOU FIND ONE!!! Oh and you probably want smartdashboard stuff too!! I forgot!! The stuff hasn't changed since last year in regards to the smartdashboard but the new javadocs are here the rest you might want to find in screensteps from the 2014 cRIO.
|
Re: Robot Accelerometer
Quote:
|
Re: Robot Accelerometer
Quote:
Quote:
|
Re: Robot Accelerometer
I'd rather not speculate. Let's let Pockets answer the question directed to him. |
Re: Robot Accelerometer
Quote:
Quote:
|
Re: Robot Accelerometer
I have a reason for asking the question. Can we please let Pockets answer it? |
Re: Robot Accelerometer
Quote:
|
Re: Robot Accelerometer
Quote:
To avoid further degradation of the SNR on this thread, let's use PM for any further discussion of this. |
Yes, I meant two wheels. Sorry for the confusion.
|
| All times are GMT -5. The time now is 13:18. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi