L'équipe robotique FIP a pour but de participer à la Coupe de France de Robotique (http://www.planete-sciences.org/robot/?section=pages&pageid=79). L'équipe est composée d'étudiants de l'école d'ingénieur Télécom Bretagne en filière par partenariat. Nous utilisons comme plateforme les microcontrôleurs STM32 associés aux cartes NUCLEO.
Dependencies: mbed HC_SR04_Ultrasonic_Library Nucleo_Sensor_Shield VL6180x_lib
Fork of Coupe Robotique FIP by
We are a team of students building an autonomous robot which will compete in the French Robotic Cup.
Diff: main.cpp
- 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