// ondéfénit la variable 'distance' et le capteur sonar #pragma config(Sensor,S4, dist, sensorSONAR) //Code en robotC pour le scorion //Code en MSI2 Charles-Antoine zachary madyson BOLDUC task main() // la tache principale { wait1Msec(1000); int distance_cm=15; while(SensorValue(dist)>distance_cm) { motor[motorB]=50; motor[motorC]=50; } { motor[motorB]=0; motor[motorB]=0; motor[motorA]=90; wait1Msec(1500); motor[motor90]=-90; wait1(1500); } }