Added more code for side and angled sensor

Dependencies:   QEI2 PID Watchdog VL53L1X_Filter BNOWrapper ros_lib_kinetic

Revision:
28:6d6bd8ad04dc
Parent:
27:da718b990837
Child:
31:06f2362caf12
--- a/Statistics/statistics.h	Fri Jun 28 21:16:26 2019 +0000
+++ b/Statistics/statistics.h	Mon Jul 01 06:03:43 2019 +0000
@@ -1,22 +1,24 @@
-#ifndef statistics_h
-#define statistics_h
+#ifndef statistics_h               //improvement: #ifndef _STATISTICS_h  (purpose: good coding practice)
+#define statistics_h               //             #define _STATISTICS_h
  
 #include "mbed.h"
 
+// Capitalize the first letter of class name (good coding practice/how to distinguish class from function)
 class statistics 
 { 
 public: 
-
+    //Defining default constructor
     statistics(int* Input, int dataLength, int firstDataPoint = 0); 
+    //Defining methods
     double stdev();
     double mean();
     
   private:
-   int* data;
+   int* data;                                       //pointer to data
    int dataLength;
+   int firstDataPoint;
 
     
 };
 
-#endif
-
+#endif
\ No newline at end of file