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

Function agcThresholdOverlayValue

src/gui/MainWindow_Controllers.cpp:120–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120int agcThresholdOverlayValue(const SliceModel* slice, int threshold)
121{
122 if (!usesExternalReceiveControls(slice)) {
123 return threshold;
124 }
125 return std::clamp(
126 static_cast<int>(std::lround(
127 static_cast<float>(threshold - KiwiSdrProtocol::kAgcThresholdMinDb)
128 * 100.0f
129 / static_cast<float>(KiwiSdrProtocol::kAgcThresholdMaxDb
130 - KiwiSdrProtocol::kAgcThresholdMinDb))),
131 0, 100);
132}
133
134QString tmate2EncoderDefaultAction(int encoderIndex)
135{

Callers 1

Calls 1

Tested by

no test coverage detected