Kevin Wells 6 سال پیش
والد
کامیت
f179129333
2فایلهای تغییر یافته به همراه0 افزوده شده و 16 حذف شده
  1. 0 4
      _main.ino
  2. 0 12
      lapCounter.ino

+ 0 - 4
_main.ino

@@ -76,10 +76,6 @@ int laps = 0;
 int avglaps= 0; // AVERAGE LAP COUNTER
 
 
-//LAP COUNTER SETUP ///////////////////////////////////////////////////
-int recordedLaps = 0;     //number of samples averaged 
-double speeds[maxLaps] = {0};    // need a 0 for every sample to average
-
 unsigned long times[maxTimes] = {0};
 int recordedTimes = 0;
 unsigned long lastTime = 0;

+ 0 - 12
lapCounter.ino

@@ -1,12 +0,0 @@
-void recordLap(double val) {
-  speeds[recordedLaps++] = val;
-}
-
-double averageSpeed() {
-  double sum = 0;
-  for (int i = 0; i < recordedLaps; i++) {
-    sum = sum + speeds[i]; //  adds previous lap to sum
-  }
-  double average = sum / (double)recordedLaps;
-  return average;
-}