To use this sensor in other code or behaviors, we should move it into the Robot object. We can then import our code into the Robot object, and set up the two sides with the correct pins. The encoders need some cleanup code to be added to them.
To use this sensor in other code or behaviors, we should move it into the Robot object. We can then import our code into the Robot object, and set up the two sides with the correct pins. The encoders need some cleanup code to be added to them.