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

Method primeProfileTracking

src/core/KiwiSdrManager.cpp:391–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391void KiwiSdrManager::primeProfileTracking(const QString& id, int sliceId,
392 double frequencyMhz,
393 const QString& mode,
394 int filterLowHz,
395 int filterHighHz,
396 const QString& panId,
397 double centerMhz,
398 double bandwidthMhz,
399 int lineDurationMs)
400{
401 if (!hasProfile(id) || sliceId < 0 || frequencyMhz <= 0.0) {
402 return;
403 }
404
405 if (KiwiSdrClient* c = ensureClient(id)) {
406 Q_UNUSED(c);
407 m_clientHasTrackedSlice.insert(id, true);
408 invokeClient(id, [sliceId, frequencyMhz, mode, filterLowHz,
409 filterHighHz, panId, lineDurationMs,
410 centerMhz, bandwidthMhz](KiwiSdrClient* client) {
411 client->setTrackedSlice(sliceId, frequencyMhz, mode, filterLowHz,
412 filterHighHz, panId);
413 client->setWaterfallLineDurationMs(lineDurationMs);
414 if (!panId.isEmpty() && centerMhz > 0.0 && bandwidthMhz > 0.0) {
415 client->setWaterfallView(panId, centerMhz, bandwidthMhz);
416 }
417 });
418 }
419}
420
421void KiwiSdrManager::assignSliceToProfile(int sliceId, const QString& profileId,
422 double frequencyMhz,

Callers 1

wireKiwiSdrMethod · 0.80

Calls 4

setTrackedSliceMethod · 0.80
setWaterfallViewMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected