#pragma config(Sensor, S1, bumper1, sensorTouch) #pragma config(Sensor, S2, bumper2, sensorTouch) //Code en robotC pour les deux pare-chocs //Code en MSI2 Clovis Gravel task main() { while (true) { if(SensorValue(bumper1)==1) { motor[motorB]=0; motor[motorC]=-5; wait1Msec(1000); } if(SensorValue(bumper2)==1) { motor[motorC]=0; motor[motorB]=-5; wait1Msec(1000); } else { motor[motorB]=10; motor[motorC]=10; } } }