KentridgeRobotics / 2017Robot-Controls

2017 Robot Control Systems Software
3 stars 1 forks source link

ArcadeDrive: Use gyros to drive in a straight line #32

Open cpdupuis opened 7 years ago

cpdupuis commented 7 years ago

When we're driving forward (joystick straight forward) or backward (joystick straight back), it would be nice to go straight automatically. Can we store the gyro reading from when we start going straight, and feed our offset from that reading into the PID values for driving the left and right wheels somehow, so the robot just goes straight?