mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 14:07:30 +00:00
Selectable marker data format, preparation for showing marker data on graphs
This commit is contained in:
parent
2d13fdfe5e
commit
036837a6ae
16 changed files with 437 additions and 188 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue