Radiosonde beep tone tweaks (#2020)

* Tweak RSSI audio beep frequency range
* Clang & changed min freq
* Save beep/log/crc settings in .ini file
* Update copyright string
* Added generic audio_beep message
This commit is contained in:
Mark Thompson 2024-03-21 04:14:54 -05:00 committed by GitHub
parent 8391ca8052
commit 4aeaf94d2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 99 additions and 36 deletions

View file

@ -1,6 +1,7 @@
/*
* Copyright (C) 2015 Jared Boone, ShareBrained Technology, Inc.
* Copyright (C) 2017 Furrtek
* Copyright (C) 2024 Mark Thompson
*
* This file is part of PortaPack.
*
@ -70,16 +71,19 @@ SondeView::SondeView(NavigationView& nav)
geopos.set_read_only(true);
check_beep.set_value(beep);
check_beep.on_select = [this](Checkbox&, bool v) {
beep = v;
if (v)
baseband::request_beep();
if (beep)
baseband::request_audio_beep(1000, 60); // 1khz tone for 60ms to acknowledge enablement
};
check_log.set_value(logging);
check_log.on_select = [this](Checkbox&, bool v) {
logging = v;
};
check_crc.set_value(use_crc);
check_crc.on_select = [this](Checkbox&, bool v) {
use_crc = v;
};
@ -222,7 +226,7 @@ void SondeView::on_packet(const sonde::Packet& packet) {
}
if (beep) {
baseband::request_beep();
baseband::request_rssi_beep();
}
}
}