changements compte-tour & scribe - test
This commit is contained in:
parent
b1563fe2bc
commit
ba7170e48a
|
@ -185,7 +185,7 @@ void compte_tour() {
|
||||||
chrono_compte_tour = millis()- start_chrono_scribe;
|
chrono_compte_tour = millis()- start_chrono_scribe;
|
||||||
pcnt_get_counter_value(PCNT_UNIT_0, &count);
|
pcnt_get_counter_value(PCNT_UNIT_0, &count);
|
||||||
int diff_count = count - old_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;
|
old_count = count;
|
||||||
Serial.println("count =");
|
Serial.println("count =");
|
||||||
Serial.println(count);
|
Serial.println(count);
|
||||||
|
|
Loading…
Reference in a new issue