LCD Starting Location Selector Issue

My four teams all use an LCD screen allowing them to select what square they are on at the start of a competition match. Students select and then the cortex waits until the competition controller starts the match. We have been using this for the last three tournaments, but today we had issues with the cortex restarting on two of the three robots in todays tournament. After the restart, we have to push the center LCD button to engage the program. Since the bot has moved, we can’t push the button again, and during several matches our robots just sat there unable to move or continue the match. Anyone else had this issue? Anyone have a solution? Code is on school computer so I can’t post it until Monday. Thanks!!!

This is a problem that my team has run into in the past. What we’ve done is add a while loop that checks for whether the robot is disabled or not. That way, the LCD selection code will only run when the robot is disabled. If it gets disconnected during driver mode, it’ll automatically skip the LCD selection code in preauton and head to usercontrol.


while(bIfiRobotDisabled == 1)
{
     //selection code
}

We will give it a go and see how this works. Thank you so much!!!

Have a happy day