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

Function antennaTargetSliceForPan

src/gui/SpectrumOverlayMenu.cpp:53–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51static constexpr int WF_LINE_DURATION_MAX_MS = 100;
52
53SliceModel* antennaTargetSliceForPan(RadioModel* radioModel,
54 SliceModel* currentSlice,
55 const QString& panId)
56{
57 if (currentSlice && (panId.isEmpty() || currentSlice->panId() == panId)) {
58 return currentSlice;
59 }
60
61 if (radioModel && !panId.isEmpty()) {
62 for (SliceModel* candidate : radioModel->slices()) {
63 if (candidate && candidate->panId() == panId) {
64 return candidate;
65 }
66 }
67 }
68
69 return currentSlice;
70}
71
72static QString rateSliderLabelText(int sliderValue)
73{

Callers 3

buildAntPanelMethod · 0.85
currentRxAntennaTokenMethod · 0.85
refreshAntennaComboMethod · 0.85

Calls 3

slicesMethod · 0.80
isEmptyMethod · 0.45
panIdMethod · 0.45

Tested by

no test coverage detected