hormone v.1 for optimizing COT
Dependents: TurtleBot_with_AHS
Fork of calculator by
calculator.h
- Committer:
- worasuchad
- Date:
- 2018-08-13
- Revision:
- 0:22ebaf70b60e
- Child:
- 1:b6345fbad095
File content as of revision 0:22ebaf70b60e:
#ifndef CALCULATOR_H #define CALCULATOR_H #include "mbed.h" class calculator { protected: float sum, mean, standardDeviation; int i; public: calculator(); float calculateSD(const float *sdData, int size); float calculateMean(const float *meanData, int size); float calcSDVectorA(const float *arrAx, const float *arrAy, const float *arrAz, int size); float calcG4(const float *arrRoll, const float *arrPitch, int size); }; #endif