MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / prepareForFftScaleChange

Method prepareForFftScaleChange

src/gui/SpectrumWidget.cpp:1602–1614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1600}
1601
1602void SpectrumWidget::prepareForFftScaleChange()
1603{
1604 m_resetFftSmoothingOnNextFrame = true;
1605 if (!m_noiseFloorEnable) return;
1606
1607 constexpr qint64 kScaleSettleMs = 750;
1608 const qint64 nowMs = QDateTime::currentMSecsSinceEpoch();
1609 m_noiseFloorScaleSettlingUntilMs =
1610 std::max(m_noiseFloorScaleSettlingUntilMs, nowMs + kScaleSettleMs);
1611 armNoiseFloorFastLock(8, 1);
1612 m_noiseFloorCandidateValid = false;
1613 m_noiseFloorCandidateFrames = 0;
1614}
1615
1616void SpectrumWidget::setFftWeightedAvg(bool on) {
1617 m_fftWeightedAvg = on;

Callers 4

wirePanadapterMethod · 0.80
wirePanLifecycleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected