mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Added further stubs
This commit is contained in:
parent
b8d28c203d
commit
936079872a
@ -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();
|
||||
|
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user