Calculate additional parameters (R/L/C,...) for markers and traces

This commit is contained in:
Jan Käberich 2021-06-27 23:40:50 +02:00
parent a232be3443
commit e27e594435
18 changed files with 168 additions and 164 deletions

View file

@ -1,7 +1,7 @@
#include "impedancematchdialog.h"
#include "ui_impedancematchdialog.h"
#include "Tools/eseries.h"
#include "unit.h"
#include "Util/util.h"
using namespace std;
@ -240,7 +240,7 @@ void ImpedanceMatchDialog::calculateMatch()
ui->mReal->setValue(Zmatched.real());
ui->mImag->setValue(Zmatched.imag());
double reflection = abs((Zmatched-Z0)/(Zmatched+Z0));
auto loss = Unit::dB(reflection);
auto loss = Util::SparamTodB(reflection);
ui->mLoss->setValue(loss);
// set correct image