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

Method tuneAndRecenter

src/models/SliceModel.cpp:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void SliceModel::tuneAndRecenter(double mhz)
62{
63 if (m_locked) {
64 notifyTuneBlockedByLock();
65 return;
66 }
67 if (qFuzzyCompare(m_frequency, mhz)) return;
68 m_frequency = mhz;
69 // Without autopan=0, the radio recenters the pan on the new frequency.
70 // Used for band changes where recentering is desired.
71 sendCommand(QString("slice tune %1 %2").arg(m_id).arg(mhz, 0, 'f', 6));
72 emit frequencyChanged(mhz);
73}
74
75void SliceModel::setMode(const QString& mode)
76{

Callers 5

cmdVfoMethod · 0.80
cmdSetFreqMethod · 0.80
applyTuneRequestMethod · 0.80
restoreBandStateMethod · 0.80

Calls 1

sendCommandFunction · 0.85

Tested by

no test coverage detected