diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-11-23 12:25:51 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-11-23 12:25:51 -0600 |
commit | 3ad4a2fde749077bce94115902ab9c6e9760a2f8 (patch) | |
tree | f365f002a85f374513029a78522c0037cd1ba1e9 /Mode/Mode.h | |
parent | 4166bbd0ff84397f31d4928c2ebe6d9a57c3694d (diff) | |
download | mtdot-box-evb-factory-firmware-3ad4a2fde749077bce94115902ab9c6e9760a2f8.tar.gz mtdot-box-evb-factory-firmware-3ad4a2fde749077bce94115902ab9c6e9760a2f8.tar.bz2 mtdot-box-evb-factory-firmware-3ad4a2fde749077bce94115902ab9c6e9760a2f8.zip |
save survey data to file, start adding support for sending data packet, misc tweaks and fixes
Diffstat (limited to 'Mode/Mode.h')
-rw-r--r-- | Mode/Mode.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Mode/Mode.h b/Mode/Mode.h index 903d9c8..8a4f030 100644 --- a/Mode/Mode.h +++ b/Mode/Mode.h @@ -23,12 +23,9 @@ class Mode { GPSPARSER::latitude gps_latitude; int16_t gps_altitude; struct tm gps_time; - int16_t rssi_up; - int16_t snr_up; - int16_t rssi_down; - int16_t snr_down; + LoRaHandler::LoRaPing ping; uint8_t data_rate; - uint8_t power; + uint32_t power; } DataItem; Mode(DOGS102* lcd, ButtonHandler* buttons, mDot* dot, LoRaHandler* lora); @@ -39,6 +36,7 @@ class Mode { protected: bool deleteDataFile(); bool appendDataFile(const DataItem& data); + void updateData(DataItem& data, DataType type, bool status); DOGS102* _lcd; ButtonHandler* _buttons; @@ -54,6 +52,7 @@ class Mode { uint32_t _next_tx; ButtonHandler::ButtonEvent _be; LoRaHandler::LoRaStatus _ls; + LoRaHandler::LoRaPing _ping_result; uint8_t _state; bool _send_data; }; |