Explorar el Código

ajout des boucles for pour créer la mire

Jackbot hace 4 años
padre
commit
aee8fb0897
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      etalonnage/mire.sh

+ 2 - 1
etalonnage/mire.sh

@@ -108,7 +108,8 @@ verification "$TAILLE" "taille" 100
 TAILLE=$VALEUR
 echo -e "taille=$TAILLE"
 
-echo $longueur
+longueur=$(echo "scale=1; $TAILLE/16.0" | bc)
+echo -e "longueur=$longueur"
 
 echo -e "G91\nG21\nG0 Z $FOCALE" > sortie.gcode
 echo -e "G1 F$VITESSE\n" >> sortie.gcode