Level RSSIGraph tuning (#1556)

* Added whole graph RSSI min/avg/max/delta to RSSIGraph
* fix for min=0 values when modulation is changed
* literal number as a #define flag
This commit is contained in:
gullradriel 2023-11-06 11:12:36 +01:00 committed by GitHub
parent 645f02e2f3
commit 2b7962fa7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 20 deletions

View file

@ -49,6 +49,7 @@ class RSSI : public Widget {
: RSSI{{}, {}} {
}
// get last used/received min/avg/max/delta
int16_t get_min();
int16_t get_avg();
int16_t get_max();
@ -113,8 +114,16 @@ class RSSIGraph : public Widget {
void on_hide() override;
void on_show() override;
// get whole graph_list min/avg/max/delta
int16_t get_graph_min();
int16_t get_graph_avg();
int16_t get_graph_max();
int16_t get_graph_delta();
private:
int16_t graph_min_ = 0;
int16_t graph_avg_ = 0;
int16_t graph_max_ = 0;
uint16_t nb_columns_before_hide = 16;
uint16_t nb_columns = 16;
RSSIGraphList graph_list{};