Improved tone generator for proper frequency control. Also

features a square wave mode.
Added proportional beep duration based on the RSSI as well.
Now reading the current radiosonde frequency from the
battery backed RAM instead starting with the same frequency
all the time.
This commit is contained in:
teixeluis 2021-06-16 23:23:47 +01:00
parent a80d91fb1e
commit 8aff0bb4d8
5 changed files with 25 additions and 22 deletions

View file

@ -211,7 +211,7 @@ void SondeView::set_target_frequency(const uint32_t new_value) {
target_frequency_ = new_value;
//radio::set_tuning_frequency(tuning_frequency());
// we better remember the tuned frequency, by using this function instead:
receiver_model.set_tuning_frequency(tuning_frequency());
receiver_model.set_tuning_frequency(target_frequency_);
}
uint32_t SondeView::tuning_frequency() const {