Added display of rssi get delta, swapped audio and steps button for convenience

This commit is contained in:
GullCode 2023-03-13 14:04:23 +01:00
parent f42812c6b4
commit 37494500b2
2 changed files with 9 additions and 11 deletions

View File

@ -215,7 +215,7 @@ namespace ui {
last_min_rssi = rssi.get_min();
last_avg_rssi = rssi.get_avg();
last_max_rssi = rssi.get_max();
freq_stats_rssi.set( "RSSI: "+to_string_dec_int( rssi.get_min() )+"/"+to_string_dec_int( rssi.get_avg() )+"/"+to_string_dec_int( rssi.get_max() )+" db" );
freq_stats_rssi.set( "RSSI: "+to_string_dec_int( rssi.get_min() )+"/"+to_string_dec_int( rssi.get_avg() )+"/"+to_string_dec_int( rssi.get_max() )+" db, dt: "+to_string_dec_int( rssi.get_delta() )+" db" );
}
} /* on_statistic_updates */

View File

@ -47,10 +47,8 @@ namespace ui {
~LevelView();
void focus() override;
void big_display_freq( int64_t f );
void on_audio_spectrum(const AudioSpectrum* spectrum);
void big_display_freq( int64_t f );
const Style style_grey { // level
.font = font::fixed_8x16,
@ -143,18 +141,18 @@ namespace ui {
};
OptionsField step_mode {
{ 21 * 8, 1 * 16 },
{ 16 * 8, 2 * 16 + 4 },
12,
{
}
};
RSSIGraph rssi_graph { // 240x320 =>
{ 0 , 5 * 16 + 4 , 240 - 5 * 8 , 320 - 5 * 16 - 4 },
{ 0 , 5 * 16 + 4 , 240 - 5 * 8 , 216 },
};
RSSI rssi { // 240x320 =>
{ 240 - 5 * 8 , 5 * 16 + 4 , 5 * 8 , 320 - 5 * 16 - 4 },
RSSI rssi { // 240x320 =>
{ 240 - 5 * 8 , 5 * 16 + 4 , 5 * 8 , 216 },
};
@ -164,7 +162,7 @@ namespace ui {
};
OptionsField audio_mode {
{ 16 * 8, 2 * 16 + 4 },
{ 21 * 8, 1 * 16 },
9,
{
{"audio off", 0},
@ -188,7 +186,7 @@ namespace ui {
{ 0 * 8 , 4 * 16 + 4 , 15 * 8, 16 },
};
OptionsField peak_mode {
{ 44 + 10 * 8, 4 * 16 + 4 },
10,