[chronojump/FS-LCD-Menu] Fixed RFD formula



commit c06001a9e668b132c71a661182a2d21ec776e832
Author: Xavier Padullés <testing chronojump org>
Date:   Sun Jan 9 01:34:35 2022 +0100

    Fixed RFD formula

 arduino/ForceSensorLCD/ForceSensorLCD.ino | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/arduino/ForceSensorLCD/ForceSensorLCD.ino b/arduino/ForceSensorLCD/ForceSensorLCD.ino
index 4868eb173..67967e821 100644
--- a/arduino/ForceSensorLCD/ForceSensorLCD.ino
+++ b/arduino/ForceSensorLCD/ForceSensorLCD.ino
@@ -447,7 +447,7 @@ void capture(void)
 
       //RFD stuff start ------>
       if (rfdDataPre2Ok) {
-        float rfdValue =  (measured - rfdMeasuredPre2) / ((elapsedTime + rfdTimePre) / 1000000.0);
+        float rfdValue =  (measured - rfdMeasuredPre2) / ((elapsedTime - rfdTimePre2) / 1000000.0);
         rfdCalculed = true;
         if (rfdValue > rfdValueMax) {
           rfdValueMax = rfdValue;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]