I am currently trying to create a autonomous recording program utilizing the encoders on drive motors. The encoders return values in terms of rotations or degrees, but the problem is the drive train driveFor function will only take distance (inches, cm) instead of rotations. I don’t want to create my own drive functions because the drivetrain has a built in PID that I just want to use for now.
Is there any way to have a driveFor rotations function in the drivetrain class or record the position of the drivetrain in inches or cm?