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

Function waterfallByteToDisplayLevel

src/core/KiwiSdrProtocol.cpp:430–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430float 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
438WaterfallAperture autoWaterfallAperture(const QVector<float>& binsDbm)
439{

Callers 2

decodeWaterfallFrameFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68