/*this contains two functions...Start watches for presses of the start button and stop watches for presses of the stop button.  If the robot has not starting running, the start button will start it.  If stop is then pressed, the robot will freeze in its current state.  Start can continue the process again while stop pressed again (twice in a row) terminates the process.*/

void 
watchStart(){
	while(1){
		start_press();
		stopped = 0;
		if(!running){
			runPID = start_process(run());
			running = 1;
		}
	}
}

void
watchStop(){
	while(1){
		stop_press();
		if(stopped)
			break;
		stopped = 1;
	}
	terminate("\n\nRobot terminating!\n"); /* kills a processes */
}
