I’m currently doing a challenge for my school club that involves navigating around a series of cones, and as a failsafe, I am trying to implement a system to stop the robot if it’s about to hit a cone. I did this, but when I switched to user control, the robot still wouldn’t move. Is there any way I can tell whether the program is in autonomous mode or driver control mode so I can fix this?
This function should do exactly what you need: https://api.vexcode.cloud/v5/class/classvex_1_1competition?member=classvex_1_1competition_1a7b0f28235517b0517f40fd36efbc085a