sfbsg

Dependencies:   mbed

Committer:
borlanic
Date:
Tue Apr 03 15:17:11 2018 +0000
Revision:
0:8ab621116ccd
fg

Who changed what in which revision?

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