|
Encoders not getting reset after Autonomous for Teleop.
Hi,
We are using the encoder cables connected to the Neverest motors and for the autonomous we are setting the DC Controller to RUN_TO_POSITION mode. We call RESET_ENCODERS at the beginning and the end of the autonomous and it seems to fairly reliable. The main issue is when we switch to the Teleop, the drive motors are messed up and they just rotate in place with the joystick. Seems like the encoders did not reset. So we tried to set the drive motor DC controllers in Teleop to run without encoders and it still does not make a difference. If we power cycle the robot after running Autonomous, Teleop drive controls have no problem. Are we missing any other setting? How do we reset the encoders after Autonomous without power cycling the robot.
Thanks
Charging Champions
Team 8660
|