///////////////////////// Slots /////////////////////////////////////
| 503 | |
| 504 | ////////////////////////////// Slots ///////////////////////////////////// |
| 505 | void |
| 506 | Scanner::onPSDMessage(const Suscan::PSDMessage &msg) |
| 507 | { |
| 508 | if (!this->fsGuessed) { |
| 509 | this->fs = msg.getSampleRate(); |
| 510 | this->analyzer->setBufferingSize(this->rtt * this->fs / 1000); |
| 511 | this->analyzer->setBandwidth(this->fs); |
| 512 | this->fsGuessed = true; |
| 513 | this->views[0].fftBandwidth = this->views[1].fftBandwidth = this->fs; |
| 514 | this->getSpectrumView().setRange(this->freqMin, this->freqMax); |
| 515 | } |
| 516 | |
| 517 | if (msg.size() == SIGDIGGER_SCANNER_SPECTRUM_SIZE) { |
| 518 | this->getSpectrumView().feed( |
| 519 | msg.get(), |
| 520 | nullptr, |
| 521 | msg.getFrequency()); |
| 522 | } |
| 523 | |
| 524 | emit spectrumUpdated(); |
| 525 | } |
| 526 | |
| 527 | void |
| 528 | Scanner::onAnalyzerHalted(void) |
nothing calls this directly
no test coverage detected