Modifications

Sauter à la navigation Sauter à la recherche
135 octets supprimés ,  19 février 2022 à 20:35
Ligne 194 : Ligne 194 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
Which produce the following results in Thonny.
+
Which produce the following results in Thonny and activated Plotter.
 
  −
La valeur numérique produite dans la session REPL est également reproduite dans le Plotter.
      
[[Fichier:ENG-CANSAT-PICO-THONNY-11.png|480px]]
 
[[Fichier:ENG-CANSAT-PICO-THONNY-11.png|480px]]
Ligne 202 : Ligne 200 :  
'''{{underline|Drawing several curves}}'''
 
'''{{underline|Drawing several curves}}'''
   −
En modifiant un peu le code du script, il est possible de retourner la valeur PWM sans correction gamma et avec correction gamme. En encodant ces valeurs dans un tuple, le plotter peut alors dessiner plusieurs courbes.
+
By modifying the script, we can return the PWM value and the gamma corrected value. By using a [https://www.w3schools.com/python/python_tuples.asp Python tuple] the plotter can draw several curves.
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 227 : Ligne 225 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
Ce qui produit le résultat suivant dans Thonny.
+
Which produce the following results in Thonny.
    
[[Fichier:ENG-CANSAT-PICO-THONNY-12.png|480px]]
 
[[Fichier:ENG-CANSAT-PICO-THONNY-12.png|480px]]
   −
Le lecteur notera que les données sont retournée sous forme d'un tuple (pwm, pwm_gamma) . Par conséquent, la première valeur est la courbe proportionnelle et la seconde la courbe corrigée.  
+
As seen in the REPL/Shell output, the data are return under the format (pwm, pwm_gamma) . The first value is the proportional curve and the second value the gamma fixed value.  
   −
Le graphique du Plotter indique, dans son coin inférieur droit, quel est la couleur correspondante à la position de la donnée dans le tuple.
+
The plotter does show the curve correspondence between tuple value position and drawed curve (see to bottom right corner).
    
== System Shell - Pure ==
 
== System Shell - Pure ==
29 917

modifications

Menu de navigation