mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 05:47:53 +00:00
More improvements to the rssi tone. Added saving of the tuned frequency
to the radio model persistent store.
This commit is contained in:
@@ -97,6 +97,13 @@
|
||||
#include <cstddef>
|
||||
#include <bitset>
|
||||
|
||||
|
||||
#define BEEP_MIN_DURATION 80
|
||||
#define BEEP_DURATION_RANGE 150
|
||||
#define RSSI_CEILING 1000
|
||||
#define PROPORTIONAL_BEEP_THRES 0.8
|
||||
#define RSSI_PITCH_WEIGHT 0.7
|
||||
|
||||
class SondeProcessor : public BasebandProcessor {
|
||||
public:
|
||||
SondeProcessor();
|
||||
@@ -120,6 +127,8 @@ private:
|
||||
bool silence_play { false };
|
||||
bool pitch_rssi_enabled { false };
|
||||
|
||||
uint32_t last_rssi { 0 };
|
||||
|
||||
ToneGen tone_gen { };
|
||||
|
||||
BasebandThread baseband_thread { baseband_fs, this, NORMALPRIO + 20, baseband::Direction::Receive };
|
||||
|
Reference in New Issue
Block a user