Added further stubs

This commit is contained in:
Vadim Kuznetzov 2014-09-03 20:11:12 +04:00 committed by Guilherme Brondani Torri
parent b8d28c203d
commit 936079872a
2 changed files with 19 additions and 1 deletions

View File

@ -37,6 +37,8 @@ Filter::Filter(Filter::FilterFunc ffunc_, Filter::FType type_, FilterParam par)
Fl = par.Fl;
Fu = par.Fu;
TW = par.TW;
F0 = sqrt(Fu*Fl);
Q = F0/abs(Fu-Fl);
}
Rp = par.Rp;
@ -58,6 +60,10 @@ void Filter::createSchematic(QString &s)
break;
case Filter::LowPass : createLowPassSchematic(s);
break;
case Filter::BandPass : createBandPassSchematic(s);
break;
case Filter::BandStop : createBandStopSchematic(s);
break;
default: break;
}
@ -77,6 +83,16 @@ void Filter::createLowPassSchematic(QString &s)
s += ">\n";
}
void Filter::createBandPassSchematic(QString &s)
{
s = "<Qucs Schematic "PACKAGE_VERSION">\n";
}
void Filter::createBandStopSchematic(QString &s)
{
s = "<Qucs Schematic "PACKAGE_VERSION">\n";
}
bool Filter::calcFilter()
{
Sections.clear();

View File

@ -68,7 +68,7 @@ protected:
Filter::FType ftype;
Filter::FilterFunc ffunc;
int order;
float Fc,Kv,Fs,Ap,As,Rp,Fl,Fu,TW,Q;
float Fc,Kv,Fs,Ap,As,Rp,Fl,Fu,TW,Q,BW,F0;
int Nr,Nc,Nopamp; // total number of R,C, opamp
int Nr1,Nc1,Nop1; // number of R,C, opamp per stage
@ -91,6 +91,8 @@ protected:
virtual void calcBandStop();
virtual void createHighPassSchematic(QString &s);
virtual void createLowPassSchematic(QString &s);
virtual void createBandPassSchematic(QString &s);
virtual void createBandStopSchematic(QString &s);
public: