changements compte-tour & scribe - test

This commit is contained in:
pgp 2021-02-01 17:18:13 +01:00
parent b1563fe2bc
commit ba7170e48a

View file

@ -185,7 +185,7 @@ void compte_tour() {
chrono_compte_tour = millis()- start_chrono_scribe;
pcnt_get_counter_value(PCNT_UNIT_0, &count);
int diff_count = count - old_count;
vRotReel = (60000*diff_count/(pptr*chrono_compte_tour)); //vitesse en tours par min (4 pulsations /tour, 2 montantes, 2 descendantes)
vRotReel = (60000*diff_count/(pptr*offset)); //vitesse en tours par min (4 pulsations /tour, 2 montantes, 2 descendantes)
old_count = count;
Serial.println("count =");
Serial.println(count);