Template for group 4

Dependencies:   mbed

Fork of RT2_P3_students by RT2_P3_students

Committer:
altb
Date:
Mon Apr 09 08:01:29 2018 +0000
Revision:
2:769ce5f06d3e
Parent:
1:a30512c3ac73
Child:
4:2cc56521aa16
Changes from pmic

Who changed what in which revision?

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