We have a few projects going right now. One is running through 6814s excellent 0-auto tutorial. our new coders are making some excellent progress. However, we are not able to successfully invert the integrated encoder readings for the left side of our drivetrain. When we try to use encoder.setInverted(); both lint and gradle throw an error (I do not remember the error they were getting, unfortunately, but it led us to believe the method needs a different variable than true or false).
Here is our code (we just ended up multiplying the outbput by -1 for now),
Anyway, does anyone know the correct method to call?
Thank you for your help,
R2
Thank you. That makes sense. As I look at the code, we were reversing the motor manually hence the discrepancy. So, when you invert the motor, it inverts the sensor automatically?