Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{Pololu-Zumo-Shield-Arduino-NAV}}
 
{{Pololu-Zumo-Shield-Arduino-NAV}}
   −
{{traduction}}
+
Cet exemple étend le projet de [[Pololu-Zumo-Shield-Arduino-detecter-bord|détection simplifiée des bordures]] du robot sumo tel que décrit dans la section précédente. Cet exemple utilise l'accéléromètre du shield Zumo (le LSM303, boussole 3 axes, décrit dans la [[Pololu-Zumo-Shield-Arduino-seneur-inertiel|Section 3.d]]) pour détecter les collisions. With the [[Pololu-Zumo-Shield-Arduino-bibliotheque-Zumo|Zumo Shield Arduino Libraries]] installed, the sketch file can be opened in Arduino by selecting '''Fichier > Exemples > ZumoExamples > SumoCollisionDetect'''.
   −
This example extends the [[Pololu-Zumo-Shield-Arduino-detecter-bord|détection simplifiée des bordures]] sumo robot example described in the previous section, making use of the accelerometer in the Zumo Shield’s LSM303 3-axis compass module (described in section [[Pololu-Zumo-Shield-Arduino-seneur-inertiel|Section 3.d]]) to detect collisions. With the [[Pololu-Zumo-Shield-Arduino-bibliotheque-Zumo|Zumo Shield Arduino Libraries]] installed, the sketch file can be opened in Arduino by selecting '''Fichier > Exemples > ZumoExamples > SumoCollisionDetect'''. This example also requires the [https://github.com/pololu/lsm303-arduino|bibliothèque LSM303] to be installed.
+
Cet exemple requière l'installation de la [https://github.com/pololu/lsm303-arduino|bibliothèque LSM303] .
   −
This program uses the X and Y components of the acceleration measured by the LSM303 to determine when it has made contact with an adversary robot in a sumo competition. When it detects contact, the Zumo speeds up, which should allow it to either more effectively push the opponent out of the ring or to escape the opponent if it collided at an undesired angle (from the rear or side). To read more about how this program works, please see the comments contained in SumoCollisionDetect.ino.
+
Ce croquis/exemple utilise les composantes X et Y du vecteur d'accélération mesuré à l'aide du LSM303 afin détecter une collision avec un robot adversaire. Lorsqu'il détecte un contacte, le Zumo accélère, ce qui lui permet d'éjecter l'opposant hors du ring avec plus d'efficacité. Accélérer permet également d'échapper à l'opposant si c'est ce dernier vient percuter le Zumo sous un angle indésirable (ex: par l'arrière).  
 +
 
 +
Pour en apprendre plus sur le fonctionnement du programme vous pouvez lire les commentaire du croquis {{fname|SumoCollisionDetect.ino}}.
    
{{Pololu-Zumo-Shield-Arduino-TRAILER}}
 
{{Pololu-Zumo-Shield-Arduino-TRAILER}}
29 917

modifications

Menu de navigation