Modifications

Sauter à la navigation Sauter à la recherche
188 octets ajoutés ,  23 avril 2015 à 10:52
Ligne 162 : Ligne 162 :     
== Calibration ==
 
== Calibration ==
The conversion from angle or speed to pulse width is done by the servo object using its calibration values. To get the current calibration, use
+
La conversion d'angle (ou vitesse) vers la largeur d'impulsion est fait par l'objet servo en utilisant ses valeurs de calibration. Pour obtenir la calibration actuelle, utilisez:
    
  <nowiki>>>> servo1.calibration()
 
  <nowiki>>>> servo1.calibration()
 
(640, 2420, 1500, 2470, 2200)</nowiki>
 
(640, 2420, 1500, 2470, 2200)</nowiki>
   −
There are 5 numbers here, which have meaning:
+
Qui produit 5 nombres dont voici la signification:
* Minimum pulse width; the smallest pulse width that the servo accepts.
+
* '''Largeur d'implusion minimale''' - la plus petite largeur d'impulsion que le servo moteur peut accepter.
* Maximum pulse width; the largest pulse width that the servo accepts.
+
* '''Largeur d'impulsion maximale''' - la plus grande largeur d'impulsion que le servo moteur peut accepter.
* Centre pulse width; the pulse width that puts the servo at 0 degrees or 0 speed.
+
* '''Largeur d'impulsion du centre''' - la largeur d'impulsion correspondant à la position centrale du servo-moteur (soit l'angle 0 degré ou la vitesse 0).
* The pulse width corresponding to 90 degrees. This sets the conversion in the method {{fname|angle}} of angle to pulse width.
+
* '''Largeur d'impulsion à 90°''' - initialise la conversion angle<->largeur_d_impulsion pour la méthode {{fname|angle}}.
 
* The pulse width corresponding to a speed of 100. This sets the conversion in the method {{fname|speed}} of speed to pulse width.
 
* The pulse width corresponding to a speed of 100. This sets the conversion in the method {{fname|speed}} of speed to pulse width.
  
29 836

modifications

Menu de navigation