a 10-Point moving average filter that can return an int or a float depending on the function used

Dependents:   A-Quad

MAF.h

Committer:
KarimAzzouz
Date:
2012-12-26
Revision:
0:c1b48befe066
Child:
1:fbc57eb4e61d

File content as of revision 0:c1b48befe066:

#ifndef MAF_H
#define MAF_H

#include "mbed.h"

class MAF {

    public:
        MAF(void);
       float update(float data);
    
    private :
        float _k[4];
        float _result;
};

#endif