mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-08 07:53:40 +00:00
Additional YAxisType: Unwrapped phase
This commit is contained in:
parent
4ba02a810f
commit
4d959598b5
7 changed files with 48 additions and 6 deletions
|
|
@ -882,6 +882,7 @@ QString TraceXYPlot::AxisTypeToName(TraceXYPlot::YAxisType type)
|
|||
case YAxisType::Disabled: return "Disabled";
|
||||
case YAxisType::Magnitude: return "Magnitude";
|
||||
case YAxisType::Phase: return "Phase";
|
||||
case YAxisType::UnwrappedPhase: return "Unwrapped Phase";
|
||||
case YAxisType::VSWR: return "VSWR";
|
||||
case YAxisType::Real: return "Real";
|
||||
case YAxisType::Imaginary: return "Imaginary";
|
||||
|
|
@ -995,6 +996,9 @@ QPointF TraceXYPlot::traceToCoordinate(Trace *t, unsigned int sample, TraceXYPlo
|
|||
case YAxisType::Phase:
|
||||
ret.setY(Util::SparamToDegree(data.y));
|
||||
break;
|
||||
case YAxisType::UnwrappedPhase:
|
||||
ret.setY(t->getUnwrappedPhase(sample) * 180.0 / M_PI);
|
||||
break;
|
||||
case YAxisType::VSWR:
|
||||
ret.setY(Util::SparamToVSWR(data.y));
|
||||
break;
|
||||
|
|
@ -1226,6 +1230,7 @@ QString TraceXYPlot::AxisUnit(TraceXYPlot::YAxisType type)
|
|||
switch(type) {
|
||||
case TraceXYPlot::YAxisType::Magnitude: return "dB";
|
||||
case TraceXYPlot::YAxisType::Phase: return "°";
|
||||
case TraceXYPlot::YAxisType::UnwrappedPhase: return "°";
|
||||
case TraceXYPlot::YAxisType::VSWR: return "";
|
||||
case TraceXYPlot::YAxisType::ImpulseReal: return "";
|
||||
case TraceXYPlot::YAxisType::ImpulseMag: return "dB";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue