Abstraction for the glider class

Dependents:   DropTest

Revision:
6:bb82dd1618c2
Parent:
5:460412fc4a17
Child:
7:dc93fe573846
--- a/Glider.h	Thu Apr 13 15:10:29 2017 +0000
+++ b/Glider.h	Thu Apr 13 15:38:09 2017 +0000
@@ -7,8 +7,13 @@
 #include "HMC5883L.h"
 #include "BMP180.h"
 
-#define BUZZER 'b'
+#define SAVE_DATA_FORMAT "%d %d %d"
+#define CMD_BUZZER 'b'
+#define CMD_RESET 'r'
+
 #define FREQ 1.0
+#define CRUZE 0
+#define LAND 1
 
 class Glider {
 public:
@@ -18,11 +23,12 @@
     float pressure;
     float temp;
     float alt;
-    bool comm;
+    bool cmdFlag;
     bool transmitFlag;
     time_t startTime;
-    time_t missionTime;
-    uint8_t packetCount;
+    time_t missionTime;  //saved data
+    uint8_t packetCount;  //daved data
+    uint8_t state;  //saved data
     HMC5883L* hmc;
     BMP180* bmp;
     Glider(Serial* device, PinName sda, PinName scl, PinName tx, PinName rx);