From 78fb25b5a1619e8df2a2b6f7c1a19673859433fd Mon Sep 17 00:00:00 2001 From: mattmcw Date: Mon, 22 Jan 2024 11:40:10 -0500 Subject: [PATCH] Calculate all frames --- ino/motor_encoder_poc/motor_encoder_poc.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ino/motor_encoder_poc/motor_encoder_poc.ino b/ino/motor_encoder_poc/motor_encoder_poc.ino index 14fe68c..8f3ff49 100644 --- a/ino/motor_encoder_poc/motor_encoder_poc.ino +++ b/ino/motor_encoder_poc/motor_encoder_poc.ino @@ -119,7 +119,7 @@ void loop() { total = millis() - start; Serial.println(total); rpm = calculateRPM(total) * (float) (rotations + 1); - fps = calculateFPS(total, 18); + fps = calculateFPS(total, frames); Serial.print("RPM: "); Serial.println(rpm); Serial.print("FPS: ");