![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Test of pmic GPA with filter
Dependencies: mbed
Fork of nucf446-cuboid-balance1_strong by
GPA.h
- Committer:
- pmic
- Date:
- 2018-04-09
- Revision:
- 22:715d351d0be7
- Parent:
- 8:d68e177e2571
- Child:
- 24:33ded7d7bcbd
File content as of revision 22:715d351d0be7:
class GPA { public: GPA(float fMin, float fMax, int NfexcDes, int NperMin, int NmeasMin, float Ts, float Aexc0, float Aexc1); float operator()(float inp, float out) { return update((double)inp, (double)out); } virtual ~GPA(); void reset(); float update(double inp, double out); void printGPAfexcDes(); void printGPAmeasPara(); void printGPAmeasTime(); private: int NfexcDes; int NperMin; int NmeasMin; double Ts; double *fexcDes; double aAexcDes; double bAexcDes; double fnyq; double pi2; double pi2Ts; double piDiv2; int Nmeas; int Nper; double fexc; double fexcPast; int ii; int jj; double scaleG; double cr; double ci; double *sU; double *sY; double sinarg; int NmeasTotal; double Aexc; double pi2Tsfexc; void fexcDesLogspace(double fMin, double fMax, int NfexcDes); void calcGPAmeasPara(double fexcDes_i); void printLine(); };