Pros Problem

Hi Guys! I’m having some issues with autonomous routine selection. I adapted the sample code from the robot C website( The lcd displays "Autonomous 1 " but doesn’t respond to any button presses. After about 10 seconds it runs a routine. Usually #4, but sometimes other ones too.

Any ideas? Thanks.

Here is the code:[

Sorry that it is on paste bin. It’s just too long for the forum.:cool:](

You have a 2 second delay in the waitForPress() and waitForRelease() functions, drop that down to 10mS amd then see what happens.

btw, nested functions are not standard C.