mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-22 07:07:49 +00:00
Significantly improved adsb demod
Change preamble detection, reduce cpu load
This commit is contained in:
@@ -51,8 +51,10 @@ private:
|
||||
bool configured { false };
|
||||
float prev_mag { 0 };
|
||||
float threshold { }, threshold_low { }, threshold_high { };
|
||||
size_t null_count { 0 }, bit_count { 0 }, sample_count { 0 };
|
||||
std::pair<float, uint8_t> shifter[ADSB_PREAMBLE_LENGTH];
|
||||
//size_t null_count{ 0 };
|
||||
size_t bit_count { 0 }, sample_count { 0 };
|
||||
//std::pair<float, uint8_t> shifter[ADSB_PREAMBLE_LENGTH];
|
||||
float shifter[ADSB_PREAMBLE_LENGTH];
|
||||
bool decoding { };
|
||||
bool preamble { }, active { };
|
||||
uint16_t bit_pos { 0 };
|
||||
|
Reference in New Issue
Block a user