Improved the pitch RSSI. Still looking for better approach.

This commit is contained in:
teixeluis 2021-06-10 12:10:24 +01:00
parent c85e6a4d52
commit edcd780402
5 changed files with 174 additions and 26 deletions

View file

@ -75,8 +75,10 @@ void RSSI::paint(Painter& painter) {
Color::black()
);
if (pitch_rssi_enabled)
baseband::set_pitch_rssi((avg_ - raw_min) * 2000 / raw_delta, true);
if (pitch_rssi_enabled) {
//baseband::set_pitch_rssi((avg_ - raw_min) * 2000 / raw_delta, true);
baseband::set_pitch_rssi((min_ - raw_min) * 2000 / raw_delta, true);
}
}
void RSSI::set_pitch_rssi(bool enabled) {