enhanced functionality in V01 vs. V00, V02 finished, conversion to double precsision in V03

Dependencies:   mbed

Committer:
pmic
Date:
Mon Apr 09 17:50:45 2018 +0000
Revision:
22:c895fa4d7319
Parent:
21:55b11670959e
all in float!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pmic 8:3b98b6e1ead3 1 class GPA
pmic 8:3b98b6e1ead3 2 {
pmic 8:3b98b6e1ead3 3 public:
pmic 8:3b98b6e1ead3 4
pmic 9:4e6f3404d473 5 GPA(float fMin, float fMax, int NfexcDes, int NperMin, int NmeasMin, float Ts, float Aexc0, float Aexc1);
pmic 8:3b98b6e1ead3 6
pmic 8:3b98b6e1ead3 7 float operator()(float inp, float out) {
pmic 21:55b11670959e 8 return update(inp, out);
pmic 8:3b98b6e1ead3 9 }
pmic 8:3b98b6e1ead3 10
pmic 8:3b98b6e1ead3 11 virtual ~GPA();
pmic 11:3b55cce7a2f3 12
pmic 8:3b98b6e1ead3 13 void reset();
pmic 21:55b11670959e 14 float update(float inp, float out);
pmic 11:3b55cce7a2f3 15
pmic 8:3b98b6e1ead3 16 void printGPAfexcDes();
pmic 8:3b98b6e1ead3 17 void printGPAmeasPara();
pmic 8:3b98b6e1ead3 18 void printGPAmeasTime();
pmic 8:3b98b6e1ead3 19
pmic 8:3b98b6e1ead3 20 private:
pmic 8:3b98b6e1ead3 21
pmic 9:4e6f3404d473 22 int NfexcDes;
pmic 8:3b98b6e1ead3 23 int NperMin;
pmic 8:3b98b6e1ead3 24 int NmeasMin;
pmic 21:55b11670959e 25 float Ts;
pmic 21:55b11670959e 26 float *fexcDes;
pmic 21:55b11670959e 27 float aAexcDes;
pmic 21:55b11670959e 28 float bAexcDes;
pmic 11:3b55cce7a2f3 29
pmic 21:55b11670959e 30 float fnyq;
pmic 21:55b11670959e 31 float pi2;
pmic 21:55b11670959e 32 float pi2Ts;
pmic 21:55b11670959e 33 float piDiv2;
pmic 11:3b55cce7a2f3 34
pmic 8:3b98b6e1ead3 35 int Nmeas;
pmic 9:4e6f3404d473 36 int Nper;
pmic 21:55b11670959e 37 float fexc;
pmic 21:55b11670959e 38 float fexcPast;
pmic 8:3b98b6e1ead3 39 int ii;
pmic 8:3b98b6e1ead3 40 int jj;
pmic 21:55b11670959e 41 float scaleG;
pmic 21:55b11670959e 42 float cr;
pmic 21:55b11670959e 43 float ci;
pmic 21:55b11670959e 44 float *sU;
pmic 21:55b11670959e 45 float *sY;
pmic 21:55b11670959e 46 float sinarg;
pmic 8:3b98b6e1ead3 47 int NmeasTotal;
pmic 21:55b11670959e 48 float Aexc;
pmic 21:55b11670959e 49 float pi2Tsfexc;
pmic 11:3b55cce7a2f3 50
pmic 21:55b11670959e 51 void fexcDesLogspace(float fMin, float fMax, int NfexcDes);
pmic 21:55b11670959e 52 void calcGPAmeasPara(float fexcDes_i);
pmic 9:4e6f3404d473 53 void printLine();
pmic 8:3b98b6e1ead3 54
pmic 8:3b98b6e1ead3 55 };