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?
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?