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

@ -50,8 +50,6 @@ namespace ui {
void big_display_freq( int64_t f );
void on_audio_spectrum(const AudioSpectrum* spectrum);
const Style style_grey { // level
.font = font::fixed_8x16,
.background = Color::black(),
@ -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 },
{ 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},