@sachins2544 I am part of team 7057D, a middle school team. We have been having a problem with our claw. When we had tested it, it worked, but after we transported it to a tournament, it stopped working. We have switched motor controllers, batteries, motors, and even cortexes, claws, and programs. The two programs I had tested compiled on RobotC, but when testing the program, it didn't work. We had other teams come and help us figure out the problem, but we couldn't find out why. If anyone knows a solution to this problem, please let me know.
From my experience I would just double check everything, it is very easy to wire it up incorrectly or miss something in your code. Just because the code complied doesn’t mean it will work!
I have at one competition accidentally added a bracket to the code the night before and it meant only some of our motors worked. We spent the entire day trying to fix the problem changing everything on the robot because of it. Also I didn’t make it past the denial phase of debugging (it worked before why not now) so I didn’t properly check the code over. Only after the competition did I realise the problem.