ajout de l'imu pour nucleo
Dependencies: mbed HC_SR04_Ultrasonic_Library IMU_FIP_nucleo Nucleo_Sensor_Shield VL6180x_lib
Revision 4:149c4509b35d, committed 2015-04-02
- Comitter:
- julientiron
- Date:
- Thu Apr 02 22:18:06 2015 +0000
- Parent:
- 3:5f6a98846df7
- Child:
- 5:ea4d6b7d9a15
- Commit message:
Changed in this revision
--- a/Capteurs/Capteurs_ultrasoniques.lib Thu Apr 02 20:48:16 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://developer.mbed.org/users/ejteb/code/HC_SR04_Ultrasonic_Library/#e0f9c9fb4cf3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Capteurs/Capteurs_ultrasons.lib Thu Apr 02 22:18:06 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/ejteb/code/HC_SR04_Ultrasonic_Library/#e0f9c9fb4cf3
--- 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
Robotique FIP