diff options
Diffstat (limited to 'Mode/Mode.h')
-rw-r--r-- | Mode/Mode.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Mode/Mode.h b/Mode/Mode.h index ac5d839..903d9c8 100644 --- a/Mode/Mode.h +++ b/Mode/Mode.h @@ -3,6 +3,8 @@ #include "DOGS102.h" #include "ButtonHandler.h" +#include "mDot.h" +#include "LoRaHandler.h" #include "GPSPARSER.h" class Mode { @@ -29,7 +31,7 @@ class Mode { uint8_t power; } DataItem; - Mode(DOGS102* lcd, ButtonHandler* buttons); + Mode(DOGS102* lcd, ButtonHandler* buttons, mDot* dot, LoRaHandler* lora); ~Mode(); virtual bool start() = 0; @@ -40,9 +42,20 @@ class Mode { DOGS102* _lcd; ButtonHandler* _buttons; - uint32_t _index; + mDot* _dot; + LoRaHandler* _lora; osThreadId _main_id; static const char* _file_name; + uint32_t _index; + uint8_t _band; + uint8_t _sub_band; + uint8_t _data_rate; + uint8_t _power; + uint32_t _next_tx; + ButtonHandler::ButtonEvent _be; + LoRaHandler::LoRaStatus _ls; + uint8_t _state; + bool _send_data; }; #endif |