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

Method cmdSetSplitFreq

src/core/RigctlProtocol.cpp:1205–1219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1203}
1204
1205QString RigctlProtocol::cmdSetSplitFreq(const QString& args)
1206{
1207 QStringList parts = args.split(' ', Qt::SkipEmptyParts);
1208 dropVfoPrefix(parts); // "set_split_freq VFOB <hz>" in chk_vfo=1 mode
1209 bool ok = false;
1210 double hz = parts.isEmpty() ? 0.0 : parts[0].toDouble(&ok);
1211 if (parts.isEmpty() || !ok) return rprt(-1);
1212 const double mhz = hz / 1e6;
1213 return applySplitParam(
1214 [this, mhz]{ m_pendingSplitFreqMHz = mhz; },
1215 [mhz](SliceModel* tx) {
1216 QMetaObject::invokeMethod(tx, [tx, mhz]{ tx->setFrequency(mhz); },
1217 Qt::QueuedConnection);
1218 });
1219}
1220
1221QString RigctlProtocol::cmdGetSplitMode()
1222{

Callers

nothing calls this directly

Calls 3

dropVfoPrefixFunction · 0.85
setFrequencyMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected