When trying to test my claw, it seems like when I press the button to open it, the claw works fine. But whenever I try to press the button to close it, the right motor closes, but the left motor halts to close. Does/did anyone have the same problem, and how did you fix it?
The code is simple just to test the claw:
Try switching the motor controllers between the 2 motors. See if that makes the right motor fail to go in a certain direction while the left works fine. It’s not uncommon for a broken motor controller to only work unidirectionally.
If the motor controller turns out to be the culprit, change it for a working one (obviously).
Sorry, I forgot to mention this, but the motor which is having the issue is on port 10 (Which is a two-wire port). I switched both and the right had the issue. Would it be considered port 10 has an error on my CORTEX?
Yes, the H-bridges used to drive motors in ports 1 and 10 are notorious for failure. I would recommend staying away from using them if possible for a competition robot.