Added more code for side and angled sensor
Dependencies: QEI2 PID Watchdog VL53L1X_Filter BNOWrapper ros_lib_kinetic
Diff: Statistics/statistics.h
- Revision:
- 27:da718b990837
- Child:
- 28:6d6bd8ad04dc
diff -r 662693bd7f31 -r da718b990837 Statistics/statistics.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Statistics/statistics.h Fri Jun 28 21:16:26 2019 +0000 @@ -0,0 +1,22 @@ +#ifndef statistics_h +#define statistics_h + +#include "mbed.h" + +class statistics +{ +public: + + statistics(int* Input, int dataLength, int firstDataPoint = 0); + double stdev(); + double mean(); + + private: + int* data; + int dataLength; + + +}; + +#endif +