Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of RT2_P3_students_G4 by
GPA.h
- Committer:
- altb
- Date:
- 2018-04-03
- Revision:
- 0:78ca29b4c49e
- Child:
- 1:a30512c3ac73
File content as of revision 0:78ca29b4c49e:
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(inp, out);
}
virtual ~GPA();
void reset();
float update(float inp, float out);
void printGPAfexcDes();
void printGPAmeasPara();
void printGPAmeasTime();
private:
int NfexcDes;
int NperMin;
int NmeasMin;
float Ts;
float *fexcDes;
float aAexcDes;
float bAexcDes;
float fnyq;
float pi2;
float pi2Ts;
float piDiv2;
int Nmeas;
int Nper;
float fexc;
float fexcPast;
int ii;
int jj;
float scaleG;
float cr;
float ci;
float *sU;
float *sY;
float sinarg;
int NmeasTotal;
float Aexc;
float pi2Tsfexc;
void fexcDesLogspace(float fMin, float fMax, int NfexcDes);
void calcGPAmeasPara(float fexcDes_i);
void printLine();
};
