Whenever our team puts something in the pre_auton our driver does not work for some reason and we are not sure why, here is a copy of our code, all help is appreciated. Also does anyone know how to turn on a backlight for the LCD screen?
// Set bStopTasksBetweenModes to false if you want to keep user created tasks running between
// Autonomous and Tele-Op modes. You will need to manage all user created tasks if set to false.
bStopTasksBetweenModes = true;
So recently I was trying to address the lack of good example code for LCD control in competition. It will ensure you always have full control of the robot and not get stuck in LCD selection.
I built the LCD control into the competition template so that people didn’t just take the code chooser and add it line by line to their existing program. I only added like 50 lines of code to make it work anyway.
Ya. The task that is selecting should be killed if you get into autonomous without having selected anything. Also it should be killed if you go into driver without ever having run autonomous. (what your issue had been)
Pre auto runs upon start up even if your just going straight into driver control.