Added more code for side and angled sensor

Dependencies:   QEI2 PID Watchdog VL53L1X_Filter BNOWrapper ros_lib_kinetic

Committer:
sepham
Date:
Tue Aug 13 19:22:08 2019 +0000
Revision:
43:9858a580b3d7
Parent:
35:5a2fed4c2e9f
Angled side sensor, side sensor more code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JesiMiranda 35:5a2fed4c2e9f 1 #ifndef STATISTICS_h
JesiMiranda 35:5a2fed4c2e9f 2 #define STATISTICS_h
jvfausto 27:da718b990837 3
jvfausto 27:da718b990837 4 #include "mbed.h"
jvfausto 27:da718b990837 5
JesiMiranda 35:5a2fed4c2e9f 6 class Statistics
jvfausto 27:da718b990837 7 {
jvfausto 27:da718b990837 8 public:
jvfausto 28:6d6bd8ad04dc 9 //Defining default constructor
JesiMiranda 35:5a2fed4c2e9f 10 Statistics(int* Input, double dataLength, int firstDataPointIn = 0);
jvfausto 28:6d6bd8ad04dc 11 //Defining methods
jvfausto 27:da718b990837 12 double stdev();
jvfausto 27:da718b990837 13 double mean();
jvfausto 27:da718b990837 14
jvfausto 27:da718b990837 15 private:
jvfausto 28:6d6bd8ad04dc 16 int* data; //pointer to data
t1jain 31:06f2362caf12 17 double dataLength;
jvfausto 28:6d6bd8ad04dc 18 int firstDataPoint;
jvfausto 27:da718b990837 19
jvfausto 27:da718b990837 20
jvfausto 27:da718b990837 21 };
jvfausto 27:da718b990837 22
JesiMiranda 35:5a2fed4c2e9f 23 #endif //STATISTICS_h