mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 06:49:24 -05:00
Now getting rssi events.Pitch changes still to be improved.
This commit is contained in:
parent
f8f5963bcf
commit
c85e6a4d52
@ -130,6 +130,13 @@ SondeView::SondeView(NavigationView& nav) {
|
|||||||
audio::output::start();
|
audio::output::start();
|
||||||
audio::output::speaker_unmute();
|
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);
|
baseband::set_pitch_rssi(0, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ void SondeProcessor::pitch_rssi_config(const PitchRSSIConfigureMessage& message)
|
|||||||
// log_file.write_entry(datetime, "pitch_rssi_config: message.rssi: " + message.rssi);
|
// log_file.write_entry(datetime, "pitch_rssi_config: message.rssi: " + message.rssi);
|
||||||
|
|
||||||
pitch_rssi_enabled = message.enabled;
|
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);
|
// log_file.write_entry(datetime, "pitch_rssi_config: tone_delta: " + tone_delta);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user