Team A API

#pragma config(Sensor, S1,     touchAPI,       sensorTouch)
//*!!Code automatically generated by 'ROBOTC' configuration wizard
!!*//

void touchMove()
{
while (SensorValue(touchAPI) == 0)
{
nSyncedMotors = synchBC;
motor [motorB] = 50;
motor [motorC] = 50;
}
}

void turnNinetyDegreesRight ()
{
nSyncedMotors = synchBC;
motor [motorB] = -50;
motor [motorC] = 50;
wait1Msec (850);
}

void turnNinetyDegreesLeft ()
{
nSyncedMotors = synchBC;
motor [motorC] = 50;
motor [motorB] = -50;
wait1Msec (850);
}

void moveForward1Sec ()
{
nSyncedMotors = synchBC;
motor [motorB] = 50;
motor [motorC] = 50;
wait1Msec (1000);
}