mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
More user friendly time gate with filter in time domain
This commit is contained in:
parent
bb18dffb55
commit
4f4b2db549
18 changed files with 914 additions and 54 deletions
|
|
@ -396,7 +396,7 @@ void Trace::fromJSON(nlohmann::json j)
|
|||
continue;
|
||||
}
|
||||
qDebug() << "Creating math operation of type:" << operation;
|
||||
auto op = TraceMath::createMath(type);
|
||||
auto op = TraceMath::createMath(type)[0];
|
||||
if(jm.contains("settings")) {
|
||||
op->fromJSON(jm["settings"]);
|
||||
}
|
||||
|
|
@ -731,6 +731,18 @@ void Trace::addMathOperation(TraceMath *math)
|
|||
updateLastMath(mathOps.rbegin());
|
||||
}
|
||||
|
||||
void Trace::addMathOperations(std::vector<TraceMath *> maths)
|
||||
{
|
||||
TraceMath *input = lastMath;
|
||||
for(auto m : maths) {
|
||||
MathInfo info = {.math = m, .enabled = true};
|
||||
m->assignInput(input);
|
||||
input = m;
|
||||
mathOps.push_back(info);
|
||||
}
|
||||
updateLastMath(mathOps.rbegin());
|
||||
}
|
||||
|
||||
void Trace::removeMathOperation(unsigned int index)
|
||||
{
|
||||
if(index < 1 || index >= mathOps.size()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue