Skip to content

Commit

Permalink
Now getting rssi events.Pitch changes still to be improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
teixeluis committed Jun 9, 2021
1 parent f8f5963 commit c85e6a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions firmware/application/apps/ui_sonde.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion firmware/baseband/proc_sonde.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c85e6a4

Please sign in to comment.