| 118 | } |
| 119 | |
| 120 | int 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 | |
| 134 | QString tmate2EncoderDefaultAction(int encoderIndex) |
| 135 | { |
no test coverage detected