mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-09 16:33:41 +00:00
Calculate additional parameters (R/L/C,...) for markers and traces
This commit is contained in:
parent
a232be3443
commit
e27e594435
18 changed files with 168 additions and 164 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue