![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Test of pmic GPA with filter
Dependencies: mbed
Fork of nucf446-cuboid-balance1_strong by
Diff: GPA.h
- Revision:
- 22:715d351d0be7
- Parent:
- 8:d68e177e2571
- Child:
- 24:33ded7d7bcbd
diff -r d9bda15377e2 -r 715d351d0be7 GPA.h --- a/GPA.h Mon Apr 09 07:06:04 2018 +0000 +++ b/GPA.h Mon Apr 09 14:48:55 2018 +0000 @@ -5,13 +5,13 @@ 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(inp, out); + return update((double)inp, (double)out); } virtual ~GPA(); void reset(); - float update(float inp, float out); + float update(double inp, double out); void printGPAfexcDes(); void printGPAmeasPara(); @@ -22,34 +22,34 @@ int NfexcDes; int NperMin; int NmeasMin; - float Ts; - float *fexcDes; - float aAexcDes; - float bAexcDes; + double Ts; + double *fexcDes; + double aAexcDes; + double bAexcDes; - float fnyq; - float pi2; - float pi2Ts; - float piDiv2; + double fnyq; + double pi2; + double pi2Ts; + double piDiv2; int Nmeas; int Nper; - float fexc; - float fexcPast; + double fexc; + double fexcPast; int ii; int jj; - float scaleG; - float cr; - float ci; - float *sU; - float *sY; - float sinarg; + double scaleG; + double cr; + double ci; + double *sU; + double *sY; + double sinarg; int NmeasTotal; - float Aexc; - float pi2Tsfexc; + double Aexc; + double pi2Tsfexc; - void fexcDesLogspace(float fMin, float fMax, int NfexcDes); - void calcGPAmeasPara(float fexcDes_i); + void fexcDesLogspace(double fMin, double fMax, int NfexcDes); + void calcGPAmeasPara(double fexcDes_i); void printLine(); }; \ No newline at end of file