mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-09 00:13:41 +00:00
Impedance renormalization moved to de-embedding
This commit is contained in:
parent
d08388f903
commit
4307a392fb
42 changed files with 584 additions and 330 deletions
|
|
@ -62,13 +62,13 @@ double Util::distanceToLine(QPointF point, QPointF l1, QPointF l2, QPointF *clos
|
|||
return orthVect.length();
|
||||
}
|
||||
|
||||
std::complex<double> Util::SparamToImpedance(std::complex<double> d) {
|
||||
return Preferences::getInstance().Acquisition.refImp * (1.0 + d) / (1.0 - d);
|
||||
std::complex<double> Util::SparamToImpedance(std::complex<double> d, std::complex<double> Z0) {
|
||||
return Z0 * (1.0 + d) / (1.0 - d);
|
||||
}
|
||||
|
||||
double Util::dBmTodBuV(double dBm)
|
||||
{
|
||||
double uVpower = 0.000001*0.000001/Preferences::getInstance().Acquisition.refImp;
|
||||
double uVpower = 0.000001*0.000001/50.0;
|
||||
double dBdiff = 10*log10(uVpower*1000);
|
||||
return dBm - dBdiff;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue