mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
added edit dialog for median filter and optimized for speed
This commit is contained in:
parent
163b23f28d
commit
8e661aecd6
12 changed files with 342 additions and 77 deletions
|
|
@ -22,6 +22,7 @@ Trace::Trace(QString name, QColor color, LiveParameter live)
|
|||
updateLastMath(mathOps.rbegin());
|
||||
|
||||
self.enabled = false;
|
||||
dataType = DataType::Frequency;
|
||||
}
|
||||
|
||||
Trace::~Trace()
|
||||
|
|
@ -35,6 +36,7 @@ void Trace::clear() {
|
|||
}
|
||||
data.clear();
|
||||
settings.valid = false;
|
||||
warning("No data");
|
||||
emit cleared(this);
|
||||
emit outputSamplesChanged(0, 0);
|
||||
}
|
||||
|
|
@ -71,6 +73,7 @@ void Trace::addData(const Trace::Data& d) {
|
|||
// insert at this position
|
||||
data.insert(lower, d);
|
||||
}
|
||||
success();
|
||||
emit outputSamplesChanged(lower - data.begin(), lower - data.begin() + 1);
|
||||
if(lower == data.begin()) {
|
||||
// received the first point, which means the last sweep just finished
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue