mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 23:43:42 +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
|
|
@ -6,6 +6,8 @@
|
|||
#include <QLabel>
|
||||
#include <QDebug>
|
||||
#include "ui_tdrexplanationwidget.h"
|
||||
#include "unit.h"
|
||||
|
||||
using namespace Math;
|
||||
using namespace std;
|
||||
|
||||
|
|
@ -93,7 +95,7 @@ void TDR::edit()
|
|||
|
||||
ui->manualMag->setUnit("dBm");
|
||||
ui->manualMag->setPrecision(3);
|
||||
ui->manualMag->setValue(20*log10(abs(manualDC)));
|
||||
ui->manualMag->setValue(Unit::dB(manualDC));
|
||||
ui->manualPhase->setUnit("°");
|
||||
ui->manualPhase->setPrecision(4);
|
||||
ui->manualPhase->setValue(180.0/M_PI * arg(manualDC));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue