Muskogee Regional Problem 1998

The Problem

The vehicle moves forward and stops in front of the gate.  The gate is opened and the vehicle is allowed to pass.  The gate is then lowered to its previous position.

The vehicle is moved forward when the TOUCH2 button is depressed, and stopped when the pushbutton switch is released.

The gate is opened by moving the lever connected to angle sensor 6 to the right, and closed by moving the same lever to its original position.

Contestants will be allowed one trial run.  The second run will be considered final and the program and solution will be judged.

NOTE: The program is to be written on the programming forms provided.  The program will be entered into the computer exactly as it is written on the forms provided.

OUTPUTS
 Port “A” Controls the motor that moves the vehicle.
    Set direction “LEFT” to move the vehicle forward.
    Set power at 3
    If the motor is turned on for 1 sec. at power setting 3, it will move approximately 4 inches.
 Port “B” Controls the motor that raises and lowers the gate.
    At power setting 7, the gate will raise to approximately 90 degrees
    in 3 seconds.
    Set the direction to “LEFT ” to raise the gate
    Set the direction to “RIGHT” to lower the gate
 
INPUTS
   Both angle sensors are set to accept angle information.
   Both sensors are set at 0 degrees when the gate is down.
 
 Port 6  Activates the gate when moved up and to the right
   Angle = 0 when the gate is down
   Angle = 90 when the gate is up.
 
 Port 5  Sends feedback to the control.
   Angle = 0 when the gate is down
   Angle = 270 when the gate is up.