summaryrefslogtreecommitdiff
path: root/Layout/LayoutSurveySuccess.h
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-11-20 08:13:35 -0600
committerMike Fiore <mfiore@multitech.com>2015-11-20 08:13:35 -0600
commit674cdb5c13bad3598381b81d843b5aeee5798d1f (patch)
tree1d18d592b5df2513036838bc94530648ad36631e /Layout/LayoutSurveySuccess.h
parent11412cbac7021dd8aee14ac4f1dc25994c9ab45b (diff)
downloadmtdot-box-evb-factory-firmware-674cdb5c13bad3598381b81d843b5aeee5798d1f.tar.gz
mtdot-box-evb-factory-firmware-674cdb5c13bad3598381b81d843b5aeee5798d1f.tar.bz2
mtdot-box-evb-factory-firmware-674cdb5c13bad3598381b81d843b5aeee5798d1f.zip
implement basic single survey mode - still needs sending data packet and data survey file
Diffstat (limited to 'Layout/LayoutSurveySuccess.h')
-rw-r--r--Layout/LayoutSurveySuccess.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/Layout/LayoutSurveySuccess.h b/Layout/LayoutSurveySuccess.h
new file mode 100644
index 0000000..d5fe1af
--- /dev/null
+++ b/Layout/LayoutSurveySuccess.h
@@ -0,0 +1,46 @@
+#ifndef __LAYOUTSURVEYSUCCESS_H__
+#define __LAYOUTSURVEYSUCCESS_H__
+
+#include "Layout.h"
+#include "LoRaHandler.h"
+#include "GPSPARSER.h"
+
+class LayoutSurveySuccess : public Layout {
+ public:
+ LayoutSurveySuccess(DOGS102* lcd);
+ ~LayoutSurveySuccess();
+
+ void display();
+ void updateId(uint32_t id);
+ void updateRate(std::string rate);
+ void updatePower(uint32_t power);
+ void updateStats(LoRaHandler::LoRaPing ping);
+ void updateGpsLatitude(GPSPARSER::latitude lat);
+ void updateGpsLongitude(GPSPARSER::longitude lon);
+ void updateGpsTime(struct tm time);
+ void updateInfo(std::string info);
+ void updateSw2(std::string sw2);
+
+ private:
+ Label _lId;
+ Label _lDr;
+ Label _lPwr;
+ Label _lUp;
+ Label _lDown;
+ Label _lSw1;
+
+ Field _fId;
+ Field _fDr;
+ Field _fPwr;
+ Field _fUpRssi;
+ Field _fUpSnr;
+ Field _fDownRssi;
+ Field _fDownSnr;
+ Field _fGpsLat;
+ Field _fGpsLon;
+ Field _fGpsTime;
+ Field _fInfo;
+ Field _fSw2;
+};
+
+#endif