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

@ -3,7 +3,7 @@
#include <QCheckBox>
#include <cmath>
#include <QDebug>
#include "unit.h"
#include "Util/util.h"
using namespace std;
@ -244,7 +244,7 @@ void PortExtension::measurementCompleted(std::vector<Protocol::Datapoint> m)
}
double x = sqrt(p.frequency / m.back().frequency);
double y = Unit::dB(reflection);
double y = Util::SparamTodB(reflection);
att_x.push_back(x);
att_y.push_back(y);
avg_x += x;