MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / updateLimits

Method updateLimits

Components/MainSpectrum.cpp:233–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void
234MainSpectrum::updateLimits(void)
235{
236 qint64 minFreq = this->noLimits ? 0 : this->minFreq;
237 qint64 maxFreq = this->noLimits ? 300000000000 : this->maxFreq;
238
239 qint64 minLcd = minFreq + this->getLnbFreq();
240 qint64 maxLcd = maxFreq + this->getLnbFreq();
241
242
243 // Center frequency LCD limits
244 this->ui->fcLcd->setMinSilent(minLcd);
245 this->ui->fcLcd->setMaxSilent(maxLcd);
246
247 // Demod frequency LCD limits
248 minLcd = this->ui->fcLcd->getValue() - this->cachedRate / 2;
249 maxLcd = this->ui->fcLcd->getValue() + this->cachedRate / 2;
250
251 this->ui->loLcd->setMinSilent(minLcd);
252 this->ui->loLcd->setMaxSilent(maxLcd);
253
254 WATERFALL_CALL(setFrequencyLimitsEnabled(!this->noLimits));
255 WATERFALL_CALL(setFrequencyLimits(minLcd, maxLcd));
256}
257
258void
259MainSpectrum::setFrequencyLimits(qint64 min, qint64 max)

Callers 4

setFrequencyLimitsMethod · 0.95
setFreqsMethod · 0.95
setGuiConfigMethod · 0.95
onNewCenterFreqMethod · 0.95

Calls 1

getLnbFreqMethod · 0.95

Tested by

no test coverage detected