I was wondering if you can get linear acceleration data from a pigeon imu. That would be useful if you wanted to do something like updating odometry if you got bumped to the side.
Yes, the Pigeon includes an accelerometer.
I know, but from looking at the docs, I donât see a way to get linear acceleration, only rotational
FYI, although I do not know what you are using accelerometer for, but do note that accelerometers are not every accurate. So if you are trying to use it for precise control, I recommend finding an alternative solution.
Using acceleration to get translational position requires a double integration. This does not work well due to the noise.
If you want to experiment with accelerometers the roboRIO has a couple built-in.
Thank you. I didnât have a specific use in mind, I was just curious.
What Iâve decided to do is use the pigeons âgetRawAccelerometerâ method, and then âdouble integrateâ it to get a rough xy position. then, it will detect when we are bumped and do a rough correction, while triggering a limelight to use vision to more accurately update the normal odometry xy to continue following the path.
edit its actually âgetBiasedAccelerometerâ
Do you have documentation
on this?
Iâm using a pigeon, but I looked it up and found it here: https://docs.wpilib.org/en/latest/docs/software/sensors/accelerometers-software.html#
BuiltInAccelerometer
The BuiltInAccelerometer
class (Java, C++) provides access to the roboRIOâs own built-in accelerometer:
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.