Jason Cheers / analogAverager
Revision:
0:13ce3869e3dd
Child:
1:b645a3714368
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/analogAverager.h	Wed Oct 02 19:14:45 2019 +0000
@@ -0,0 +1,21 @@
+#ifndef MKANAAVG_H
+#define MKANAAVG_H
+
+class analogAverager
+{
+        float minVal;
+        float maxVal;
+        bool maxLim;
+        bool minLim;
+        unsigned int sampleNum;
+        float sampleVals[10];
+        float averageVals[2];
+        float nomVal;
+        
+    public:
+        analogAverager(float, bool, float, bool, float);
+        void putVal(float);
+        float getAvg(void);
+        void resetNum(void);
+};
+#endif
\ No newline at end of file