I’ve been having an issue with my VEX IQ RC controller drifting for a while, and I’m not sure how to fix it.
I was wondering if it would be possible to solve this using Python or a PID controller. My idea is to use the gyro sensor to automatically correct the drift so that, when I’m driving straight without turning the controller, the robot keeps moving in a straight line.
Basically, I’m looking for a way to create code that continuously compensates for the drift automatically.