| 428 | } |
| 429 | |
| 430 | float waterfallByteToDisplayLevel(unsigned char value) |
| 431 | { |
| 432 | // Kiwi server W/F direct rows encode negative dB by decrementing the |
| 433 | // clamped bin dB and wrapping it into an unsigned byte. So 255 means |
| 434 | // 0 dB, 155 means -100 dB, and 55 means -200 dB. |
| 435 | return std::clamp(static_cast<float>(value) - 255.0f, -200.0f, 0.0f); |
| 436 | } |
| 437 | |
| 438 | WaterfallAperture autoWaterfallAperture(const QVector<float>& binsDbm) |
| 439 | { |
no outgoing calls