Troubleshooting Known Issues - Cybears6346/2025Code-Deprecated- GitHub Wiki

Sometimes the robot doesn't quite seem to operate well.

This page is dedicated towards documenting common issues and their quick fixes

Driver Station Doesn't Compile Code Due to CANID Motors

This error usually happens when you instantiate a motor which isn't being recognized by the driver station. This typically means that specific motor is likely physically disconnected from the RoboRIO

To fix this issue, comment out any lines of code references or instantiating that CANID Motor

Some Mechanism is Automatically Moving on its Own

If you ever encounter an Arm moving on its own or some other mechanism, check if that mechanism is dependent or utilizes a limit switch

If it is using a limit switch in code, check 3 things

  1. Is the limit switch physically damaged or being continuously being pressed down?
  2. Check the mode of the limit switch. Limit switches have two modes, set to false when touched, or set to true when touched; Try either
  3. Is it disconnected? A disconnected limit switch WILL mess up the code. Just comment out the limit switch code if you can not connect the limit switch to the RoboRio.

"The startCompetiton() method (or methods called by it) should have handled the exception above"

Are you trying to run teleoperated code? If you are and you're getting this error, double check the driverstation mode. You are most likely in "Autonomous" mode. Swap back to "Teleoperator" mode