mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-08 07:53:40 +00:00
WIP: preparation for zero span mode
This commit is contained in:
parent
e8560e1a67
commit
6393ae7fc3
22 changed files with 299 additions and 69 deletions
|
|
@ -244,6 +244,11 @@ bool TraceXYPlot::configureForTrace(Trace *t)
|
|||
setYAxis(0, YAxis::Type::Magnitude, false, true, 0, 1, 1.0);
|
||||
setYAxis(1, YAxis::Type::Phase, false, true, 0, 1, 1.0);
|
||||
break;
|
||||
case Trace::DataType::TimeZeroSpan:
|
||||
setXAxis(XAxis::Type::TimeZeroSpan, XAxisMode::FitTraces, false, 0, 1, 0.1);
|
||||
setYAxis(0, YAxis::Type::Magnitude, false, true, 0, 1, 1.0);
|
||||
setYAxis(1, YAxis::Type::Phase, false, true, 0, 1, 1.0);
|
||||
break;
|
||||
case Trace::DataType::Invalid:
|
||||
// unable to add
|
||||
return false;
|
||||
|
|
@ -875,6 +880,8 @@ bool TraceXYPlot::domainMatch(Trace *t)
|
|||
return t->outputType() == Trace::DataType::Time;
|
||||
case XAxis::Type::Power:
|
||||
return t->outputType() == Trace::DataType::Power;
|
||||
case XAxis::Type::TimeZeroSpan:
|
||||
return t->outputType() == Trace::DataType::TimeZeroSpan;
|
||||
case XAxis::Type::Last:
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue