RobotC failing at competition

At our two most recent tournaments, we had the same problem with our cortex running robot c:

First, RobotC is unable to download to the cortex, it said something like “unable to read file contents”
Then we tried re-downloading our firmware.
It worked, and our program is able to download.

But then, when we look at our motors and sensors setup, RobotC forgot all our motors, even though they were in the code. The program now ignores our reversed motors, so nothing works properly.

We typed in our motor setup again, and it worked, but the whole ordeal cost us time at the tournament.

This has never happened outside a tournament before, so that might have to do with it.

Anyone seen this problem before?
Help?

So you were able to fix the problem, right?

Can you post the code you used for your robot before, during, and after the problem occurred?

Also, what is your firmware version, and what version of RobotC are you using?

I was using robot C 4.05, and I can’t get the program at the moment, but it had multiple tasks, including some unused ones, and lots of functions, some unused.

Try copying the contents of your main competition ROBOTC file (has initialize, auto, and opcontrol functions) into an entirely new competition template file. I found one time that this fixed an issue where a robot never exited autonomous after running with no logic errors. This is seems to be a weird bug and I found this weird fix. Might save you some time doing other things

At least upgrade to 4.06 as version 4.05 had a few issues.

Yeah, that’s one of the reasons why I haven’t upgraded to RobotC 4 because of the bugs I heard about. RobotC 3.62 is enough for my needs and has always been reliable.

Does RobotC 4.06 fix those issues?

Just curious, were you downloading with VexNet or A-A cable? I have seen issues downloading code via Vexnet at competitions. Our Event organizers were reminding teams to download using a cable vs keys last year.

Cheers Kb

ROBOTC V4.06 is stable but there’s no need to upgrade from 3.62 if you only use the cortex (4.06 supports VEX IQ as well, it’s also not a free upgrade).

we had a similar issue when switching between opening our code in different versions of RobotC.

If you encounter this again, please feel free to send it a support ticket to us directly (via our support page, http://www.robotc.net/support/) and we’ll be more than happy to take a look at this for you. If you do, please make sure to attach your code (the .c program file) so we may debug the code as well.