We’re having some issues with consistency in our autonomous, especially with the turning angle. To help with this, we’re wanting to reset the values on the encoders on the drivetrain motors before each time it drives. I see that Motor objects have
resetPostion() methods, but the Drivetrain objects don’t have these methods available. I’ve tried to call them on the individual Motors that are on the Drivetrain, but for some reason the code says it doesn’t recognize those Motor objects that were declared for the Drivetrain.
I’ve googled this a bunch, but have come up with nothing.
Some extra info, we’re using the drivetrain code that is generated in
robot-config.cpp by using the GUI motor/controller setup in VexCode Text, so that code is readonly. We can copy/paste it to
main.cpp if that’s what’s required, but was hoping to not have to deal with maintaining that. TIA