So I use this code to choose my autonomous in usercontrol before plugging into the field for a match. Would it be possible to run this task from main and not usercontrol and still use the controller to set variables while I am disabled from the field if I plug in then choose autonomous?
while (true) {
if (Controller1.Axis4.position() > 60) {
if (!(autonNumber ==
11)) { // make this max num of autons that can be chosen
autonNumber = autonNumber + 1;
} else {
autonNumber = 1;
}
}
if (Controller1.Axis4.position() < -60) {
if (!(autonNumber == 1)) {
autonNumber = autonNumber - 1;
} else {
autonNumber = 11; // make this max num of autons that can be chosen
}
}
wait(500, msec);
}
return (0);
}