From ba7170e48a71a2868565a06038daeceb53d55e7f Mon Sep 17 00:00:00 2001 From: pgp Date: Mon, 1 Feb 2021 17:18:13 +0100 Subject: [PATCH] changements compte-tour & scribe - test --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index e0cab45..fde9eb2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);