hormone v.1 for optimizing COT

Dependents:   TurtleBot_with_AHS

Fork of calculator by worasuchad haomachai

calculator.h

Committer:
worasuchad
Date:
2018-08-24
Revision:
1:b6345fbad095
Parent:
0:22ebaf70b60e

File content as of revision 1:b6345fbad095:

#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, const int size);
        float calculateMean(const float *meanData, const int size);
        float calcSDVectorA(const float *arrAx, const float *arrAy, const float *arrAz, const int size);  
        float calcG4(const float *arrRoll, const float *arrPitch, const int sizeG4);
};
#endif