Corrected header file include guards.

Dependencies:   FiniteStateMachine HipControl Knee LinearBlend1 LocalFileSystem_Read dataComm hapticFeedback initExoVars mbed Blend_Generator Brad_poly_gait Gait_Generator MM_gait Encoders IMUdriver

Fork of Motion Control by HEL's Angels

Filter/filter.h

Committer:
nathanhonka
Date:
2015-07-02
Revision:
54:9d0e871dd00a
Parent:
53:c631ea11447b

File content as of revision 54:9d0e871dd00a:



#ifndef FILTER_H
#define FILTER_H

#include "mbed.h"
#define NZEROS 2
#define NPOLES 2
#define GAIN   1.482463775e+01
#define GAIN1   4.979245121e+01

class filter
{
public:
    filter();
    float Butterworth(float input);
    float Butterworth_1K(float input);

private:
    float xv[NZEROS+1], yv[NPOLES+1];
    float xv1[NZEROS+1], yv1[NPOLES+1];

};

//extern float xv[NZEROS+1], yv[NPOLES+1];
//extern float xv1[NZEROS+1], yv1[NPOLES+1];

//extern float Butterworth(float input);
//extern float Butterworth_1K(float input);

#endif