|
Gyro to readjust shooter?
So we've essentially finished our robot, but we have a small problem and we were wondering if a Gyro sensor would work to fix it. Our frisbee shooter is mounted on two separate threaded rods controlled by separate speed controllers and motors. Because the one side is heavier, we have the motors running at separate speeds to move it up and down. However, even with a large amount of fine tuning there is some unevenness in the shooter's orientation after some use (it should be parallel to the ground).
We were wondering if a Gyro could be used to adjust the shooter constantly back to the angle it started at when it was turned on (so we wouldn't have to use an accelerometer), and if so, what the code look like.
Thanks!
|