Selectable marker data format, preparation for showing marker data on graphs

This commit is contained in:
Jan Käberich 2021-05-14 15:05:22 +02:00
parent 2d13fdfe5e
commit 036837a6ae
16 changed files with 437 additions and 188 deletions

View file

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