I’m running an emergency stop program and wondering how to automatically reset the program after the estop button is pressed. Thanks in advance!
task estop(){
untilTouch(emStop);
stopMotor(M1);
}
task main(){
startTask(estop);
while(true){
untilBump(begin);
startMotor(M1, 32);
untilEncoderCounts(1080, counter);
stopMotor(M1);
}
}