#pragma config(Sensor,S1, bumper1, sensorTouch) #pragma config(Sensor,S2, bumper2, sensorTouch) //Code en MSI2 par Clovis Gravel int Time=300; task main() { if(SensorValue(bumper1)==1) motor[motorA]=-75; motor[motorC]=-75; wait1Msec(Time); motor[motorB]=50; wait1Msec(Time); motor[motorB]=0; motor[motorA]=75; wait1Msec(Time); } if(SensorValue(bumper2)==1) { motor[motorA]=-75; motor[motorC]=-75; wait1Msec(Time); motor[motorB]=50; wait1Msec(Time); motor[motorB]=0; motor[motorC]=75; wait1Msec(Time); } else { motor[motorA]=75; motor[motorC]=75; wait1Msec(Time); } }