Making a timer ROBOTC

So in my driver control program I have the robot showing the program run time and, I was hoping, below the program run time to show the match time that was started by the press of a button. Does anybody know how to do that?

Hi nathanpitts2002,

Couple of suggestions.

  1. You won’t be able to see the LCD screen unless you are right over it. Instead use an LED sensor and change the color to report status. For instance, Green at the start of the match, yellow to switch drivers, … Red for the final 10 seconds.

  2. You may want to put your timer code in a separate thread with sleep commands between color changes.