Abstraction for the glider class

Dependents:   DropTest

Revision:
2:cc07e65227ff
Parent:
1:7039ae86fe70
Child:
3:d8932a3036a8
diff -r 7039ae86fe70 -r cc07e65227ff Glider.h
--- a/Glider.h	Mon Apr 10 17:33:41 2017 +0000
+++ b/Glider.h	Wed Apr 12 22:22:38 2017 +0000
@@ -3,11 +3,10 @@
 
 #include "mbed.h"
 #include <string>
+#include <sstream>
 #include "HMC5883L.h"
 #include "BMP180.h"
 
-const string telemFile = "/telem/telem.txt";
-
 class Glider {
 public:
     Serial* dev;
@@ -16,16 +15,22 @@
     float pressure;
     float temp;
     float alt;
+    bool comm;
     time_t startTime;
     time_t missionTime;
     HMC5883L* hmc;
     BMP180* bmp;
     Glider(Serial* device, PinName sda, PinName scl, PinName tx, PinName rx);
+    InterruptIn xbeeRxInt;
     void setHeading();
     void setTempPress();
     void setMissionTime();
+    void readTime();
     void saveTelem();
+    void saveData();
     void transmitPacket();
+    void setCommand();
+    void processCommand();
 };
 
 #endif