Now getting rssi events.Pitch changes still to be improved.

This commit is contained in:
teixeluis 2021-06-09 09:10:01 +01:00
parent f8f5963bcf
commit c85e6a4d52
2 changed files with 8 additions and 1 deletions

View File

@ -130,6 +130,13 @@ SondeView::SondeView(NavigationView& nav) {
audio::output::start();
audio::output::speaker_unmute();
// inject a PitchRSSIConfigureMessage in order to arm
// the pitch rssi events that will be used by the
// processor:
const PitchRSSIConfigureMessage message { true, 0 };
shared_memory.application_queue.push(message);
baseband::set_pitch_rssi(0, true);
}

View File

@ -114,7 +114,7 @@ void SondeProcessor::pitch_rssi_config(const PitchRSSIConfigureMessage& message)
// log_file.write_entry(datetime, "pitch_rssi_config: message.rssi: " + message.rssi);
pitch_rssi_enabled = message.enabled;
tone_delta = (message.rssi * 10 + 1000) * ((1ULL << 32) / 24000);
tone_delta = (message.rssi + 1000) * ((1ULL << 32) / 24000);
// log_file.write_entry(datetime, "pitch_rssi_config: tone_delta: " + tone_delta);
}