Modifications

Sauter à la navigation Sauter à la recherche
Ligne 115 : Ligne 115 :     
== Surveiller les mouvements ==
 
== Surveiller les mouvements ==
It would be good to monitor the axis values changing during movements, so let's put your code into a {{fname|while}} loop and run it again:
+
Ce serait bien de surveiller les valeurs sur les différents axes, plaçons notre code dans une boucle {{fname|while}} et exécutons le une nouvelle fois:
    
  <nowiki>while True:
 
  <nowiki>while True:
Ligne 129 : Ligne 129 :  
   print("pitch %s roll %s yaw %s" % (pitch, roll, yaw))</nowiki>
 
   print("pitch %s roll %s yaw %s" % (pitch, roll, yaw))</nowiki>
   −
Move the Pi around in your hand and you should see the numbers changing. See if you can just make one axis change by moving only in the pitch direction for example. Do this for all three axes. Press {{fname|Ctrl - C}} to stop the program.
+
Déplacez votre Pi dans votre main et vous deviez voir les numbres changer. Voyez si vous pouvez modifier la valeur d'un axe en bougeant votre Pi dans la direction "pitch" (élévation) comme indiqué dans les diagrammes.
 +
 
 +
Répéter l'opération pour les 3 axes. Pressez {{fname|Ctrl - C}} pour arrêter le programme.
    
== Afficher l'orientation sur la matrice LED ==
 
== Afficher l'orientation sur la matrice LED ==
30 072

modifications

Menu de navigation