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

Method applyApdStatus

src/models/TransmitModel.cpp:273–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void TransmitModel::applyApdStatus(const QMap<QString, QString>& kvs)
274{
275 bool changed = false;
276
277 if (kvs.contains("enable")) {
278 bool v = kvs["enable"] == "1";
279 if (m_apdEnabled != v) { m_apdEnabled = v; changed = true; }
280 }
281 if (kvs.contains("configurable")) {
282 bool v = kvs["configurable"] == "1";
283 if (m_apdConfigurable != v) { m_apdConfigurable = v; changed = true; }
284 }
285 if (kvs.contains("equalizer_active")) {
286 bool v = kvs["equalizer_active"] == "1";
287 if (m_apdEqActive != v) { m_apdEqActive = v; changed = true; }
288 }
289 // Bare flag (no `=`) — radio signals all per-antenna equalizers cleared.
290 if (kvs.contains("equalizer_reset")) {
291 if (m_apdEqActive) { m_apdEqActive = false; changed = true; }
292 emit apdEqualizerResetReceived();
293 }
294
295 if (changed) emit apdStateChanged();
296}
297
298// "apd sampler tx_ant=ANT1 selected_sampler=RX_A valid_samplers=RX_A,XVTA"
299void TransmitModel::applyApdSamplerStatus(const QMap<QString, QString>& kvs)

Calls 1

containsMethod · 0.80