Team138Entropy / Entropy2022

FIRST Robotics Team Entropy 138's code for the 2022 season
Other
3 stars 0 forks source link

Figure out how to Interface to RoboRio Accelerometer #23

Open joecaraccio opened 2 years ago

joecaraccio commented 2 years ago

https://docs.wpilib.org/en/stable/docs/software/hardware-apis/sensors/accelerometers-software.html#builtinaccelerometer

The RoboRio has a built in Accelerometer. It will likely be used during our climbing sequence to determine the state of the robot. We should log this to the SmartDashboard. We will need it for our climb.

Nick-P-Orr commented 2 years ago

Didn't realize there was still a small issue with this - it seems the accelerometer never rests at '0' on any axis, so you'll likely have to scrub it so anything <.1 on the x and y axis is just assumed to be 0.