ajout de l'imu pour nucleo

Dependencies:   mbed HC_SR04_Ultrasonic_Library IMU_FIP_nucleo Nucleo_Sensor_Shield VL6180x_lib

Revision:
4:149c4509b35d
Parent:
2:32226f1d12e5
Child:
11:fce59d46840f
Child:
14:4f85e35de719
--- a/main.cpp	Thu Apr 02 20:48:16 2015 +0000
+++ b/main.cpp	Thu Apr 02 22:18:06 2015 +0000
@@ -3,17 +3,17 @@
 
  void dist(int distance)
 {
-    //put code here to happen when the distance is changed
+    //code exécuté lorsque la distance change
     printf("Distance changed to %dmm\r\n", distance);
 }
 
-ultrasonic mu(D8, D9, .1, 1, &dist);    //Set the trigger pin to D8 and the echo pin to D9
-                                        //have updates every .1 seconds and a timeout after 1
-                                        //second, and call dist when the distance changes
+ultrasonic mu(D8, D9, .1, 1, &dist);    //Trigger: pin D8; Echo: pin D9
+                                        //Updates toutes les 0.1 secondes et timeout après 1 seconde
+                                        //Appel de dist lorsque la distance change
 
 int main()
 {
-    mu.startUpdates();//start mesuring the distance
+    mu.startUpdates();//démarre la mesure
     while(1)
     {
         //Do something else here