
Accelerometer/gyro bridge balancing issues..help...?
Hi,
How are other teams balancing on the bridge with an accelerometer?
I know it involves something like waiting until the readings in the x and y direction are 0, and then waiting until the reading in the z
axis is 200,
but i've also heard alot about how it's impossible to balance with only a accelerometer, and that you need a gyro sensor as well
My team tried balancing with the gyro sensor, but its had limited success. For some reason, it always stops a little after when its supposed to so it can balance, and as a result, it doesnt balance.
Below is the function i made to auto balance on the bridge in autonomous..can anyone spot any problem that i'm not seeing that could explain why its not working? I've tryed messing with the number "5.5" and "-5.5" but its still not very consistent..
-Thanks