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
GPA.h
00001 class GPA 00002 { 00003 public: 00004 00005 GPA(float fMin, float fMax, int NfexcDes, float Aexc0, float Aexc1, float Ts); 00006 GPA(float fMin, float fMax, int NfexcDes, int NperMin, int NmeasMin, float Ts, float Aexc0, float Aexc1, int NstartMin, int NsweepMin); 00007 GPA(float f0, float f1, float *fexcDes, int NfexcDes, int NperMin, int NmeasMin, float Ts, float Aexc0, float Aexc1, int NstartMin, int NsweepMin); 00008 GPA(float *fexcDes, int NfexcDes, int NperMin, int NmeasMin, float Ts, float Aexc0, float Aexc1, int NstartMin, int NsweepMin); 00009 00010 float operator()(float inp, float out) { 00011 return update((double)inp, (double)out); 00012 } 00013 00014 virtual ~GPA(); 00015 00016 void reset(); 00017 float update(double inp, double out); 00018 00019 void printGPAfexcDes(); 00020 void printGPAmeasPara(); 00021 void printFullGPAmeasPara(); 00022 void printGPAmeasTime(); 00023 void printNfexcDes(); 00024 00025 private: 00026 00027 int NfexcDes; 00028 int NperMin; 00029 int NmeasMin; 00030 double Ts; 00031 double *fexcDes; 00032 double aAexcDes; 00033 double bAexcDes; 00034 00035 double fnyq; 00036 double pi2; 00037 double pi2Ts; 00038 double piDiv2; 00039 float rad2deg; 00040 00041 int Nmeas; 00042 int Nper; 00043 double dfexc; 00044 double fexc; 00045 double fexcPast; 00046 int i; 00047 int j; 00048 double scaleG; 00049 double cr; 00050 double ci; 00051 double *sU; 00052 double *sY; 00053 double sinarg; 00054 int NmeasTotal; 00055 double Aexc; 00056 double AexcPast; 00057 double pi2Tsfexc; 00058 int NstartMin; 00059 int NsweepMin; 00060 int Nsweep; 00061 double bfexc; 00062 double afexc; 00063 double aAexc; 00064 double bAexc; 00065 double AexcOut; 00066 00067 void assignParameters(int NfexcDes, int NperMin, int NmeasMin, double Ts, int NstartMin, int NsweepMin); 00068 void calculateDecreasingAmplitudeCoefficients(double Aexc0, double Aexc1); 00069 void initializeConstants(double Ts); 00070 void assignFilterStorage(); 00071 void fexcDesLogspace(double fMin, double fMax, int NfexcDes); 00072 void calcGPAmeasPara(double fexcDes_i); 00073 void calcGPAsweepPara(); 00074 double wrapAngle(double angle); 00075 void printLongLine(); 00076 void printLine(); 00077 00078 };
Generated on Wed Jul 13 2022 01:08:03 by
1.7.2