I have setup my code to switch from automatic to manual. It is not changing between the 2 controls. I set it up so that the code would print “manual off” and “manual on” each time it switches, but it always sets it to manual on and prints “manual on” this is my code.
void manualOn(){
manual = true;
Brain.Screen.print(“manual on”);
}
// turns manual off
void manualOff(){
manual = false;
Brain.Screen.print(“manual off”);
}
while(sped==false && manual == false){
Controller1.ButtonY.pressed(spedy);
// turns on manual
Controller1.ButtonRight.pressed(manualOn);