mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-04 15:34:21 +01:00
Use a DC offset of 127.4 to match the RTL-SDR.
This commit is contained in:
@@ -89,7 +89,7 @@ public:
|
||||
std::transform(&s[start], &s[start + length], dest,
|
||||
[](const std::complex<uint8_t>& v) -> std::complex<float> {
|
||||
const float k = 1.0f / 128.0f;
|
||||
return { v.real() * k - 1.0f, v.imag() * k - 1.0f };
|
||||
return { (v.real() - 127.4f) * k, (v.imag() - 127.4f) * k };
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user