From 674cdb5c13bad3598381b81d843b5aeee5798d1f Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Fri, 20 Nov 2015 08:13:35 -0600 Subject: implement basic single survey mode - still needs sending data packet and data survey file --- Layout/LayoutSurveySuccess.h | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Layout/LayoutSurveySuccess.h (limited to 'Layout/LayoutSurveySuccess.h') 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 -- cgit v1.2.3