Added De Bruijn sequence generator

Moved POCSAG frequency list to SD card file for FreqMan
This commit is contained in:
furrtek 2017-07-20 16:48:59 +01:00
parent 8364bfb2ce
commit 3005403b5e
11 changed files with 248 additions and 82 deletions

View file

@ -270,6 +270,7 @@ EncodersView::EncodersView(NavigationView& nav) {
&numberfield_clk,
&numberfield_bitduration,
&numberfield_wordduration,
//&field_debug,
&symfield_word,
&text_format,
//&text_format_a, // DEBUG
@ -296,6 +297,19 @@ EncodersView::EncodersView(NavigationView& nav) {
this->generate_frame();
};
// DEBUG
/*field_debug.on_change = [this](int32_t value) {
uint32_t l;
de_bruijn debruijn_seq;
debruijn_seq.init(value);
l = 1;
l <<= value;
l--;
if (l > 25)
l = 25;
text_format.set(to_string_bin(debruijn_seq.compute(l), 25));
};*/
// Selecting input clock changes symbol and word duration
numberfield_clk.on_change = [this](int32_t value) {
//int32_t new_value = 1000000 / (((float)value * 1000) / encoder_def->clk_per_symbol);