Warning: file_put_contents(/home/freerange/www/robotics.org.nz/templates/frr_darkblue2/modules.js): failed to open stream: Permission denied in /home/freerange/www/robotics.org.nz/templates/frr_darkblue2/library/Artx/Page.php on line 18
RobotC timeout bug - Free Range Robotics

There is a known bug when using RobotC with crystals. When playing a competition plugged into a field controller, the robot will time out 2 or 3 seconds to early. This has been tested with RobotC versions 1.4 and 2.0.1. To fix the problem, replace

#pragma userControlDuration(120)

with

#pragma userControlDuration(255)

The robot will still stop at the end of the game, as the field controler will disable the transmitter.

This is only for crystals. VEXnet does not have this problem and you can remove the user control duration and autonomous duration lines altogether

Search

Want Some Advice?