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

Method cmdKS

src/core/SmartCatProtocol.cpp:965–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963// ── KS — CW keying speed (005-100 WPM, 3-digit) ─────────────────────────────
964
965QString SmartCatProtocol::cmdKS(const QString& arg)
966{
967 TransmitModel& tx = m_model->transmitModel();
968 if (arg.isEmpty())
969 return "KS" + fmt3(tx.cwSpeed()) + ";";
970 bool ok;
971 int wpm = arg.toInt(&ok);
972 if (!ok || wpm < 5 || wpm > 100) return "?;";
973 tx.setCwSpeed(wpm);
974 return {};
975}
976
977// ── PT — CW pitch frequency (100-999 Hz, 3-digit; values < 100 silently ignored)
978

Callers

nothing calls this directly

Calls 4

fmt3Function · 0.85
cwSpeedMethod · 0.80
setCwSpeedMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected