Updated references from MPU6050 to BNO080

Dependencies:   QEI2 PID Watchdog VL53L1X_Filter BNOWrapper ros_lib_kinetic

Dependents:   Version1-8

Statistics/statistics.h

Committer:
t1jain
Date:
2019-07-01
Revision:
31:06f2362caf12
Parent:
28:6d6bd8ad04dc

File content as of revision 31:06f2362caf12:

#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, double dataLength, int firstDataPoint = 0); 
    //Defining methods
    double stdev();
    double mean();
    
  private:
   int* data;                                       //pointer to data
   double dataLength;
   int firstDataPoint;

    
};

#endif