Added live frequency view mode

This commit is contained in:
GullCode
2023-04-07 01:57:42 +02:00
parent f7c2dde79f
commit c3971cae32
3 changed files with 35 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ namespace ui
void on_range_changed();
void on_lna_changed(int32_t v_db);
void on_vga_changed(int32_t v_db);
void add_spectrum_pixel(Color color);
void add_spectrum_pixel(int16_t color);
void PlotMarker(rf::Frequency pos);
void load_Presets();
void txtline_process(std::string& line);
@@ -89,9 +89,11 @@ namespace ui
uint8_t min_color_power { 0 };
uint32_t pixel_index { 0 };
std::array<Color, 240> spectrum_row = { 0 };
std::array<int16_t, 240> spectrum_data = { 0 };
ChannelSpectrumFIFO* fifo { nullptr };
uint8_t max_power = 0;
int32_t steps = 250 ; // default of 250 Mhz steps
bool live_frequency_view = true ;
Labels labels{
{{0, 0}, "MIN: MAX: LNA VGA ", Color::light_grey()},