Abstraction for the glider class

Dependents:   DropTest

Committer:
chasefarmer2808
Date:
Wed Apr 12 22:22:38 2017 +0000
Revision:
2:cc07e65227ff
Parent:
1:7039ae86fe70
Child:
3:d8932a3036a8
xbee rx interrupt;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chasefarmer2808 0:4e6b53a7bd38 1 #ifndef Glider_H
chasefarmer2808 0:4e6b53a7bd38 2 #define Glider_H
chasefarmer2808 0:4e6b53a7bd38 3
chasefarmer2808 0:4e6b53a7bd38 4 #include "mbed.h"
chasefarmer2808 0:4e6b53a7bd38 5 #include <string>
chasefarmer2808 2:cc07e65227ff 6 #include <sstream>
chasefarmer2808 0:4e6b53a7bd38 7 #include "HMC5883L.h"
chasefarmer2808 0:4e6b53a7bd38 8 #include "BMP180.h"
chasefarmer2808 0:4e6b53a7bd38 9
chasefarmer2808 0:4e6b53a7bd38 10 class Glider {
chasefarmer2808 0:4e6b53a7bd38 11 public:
chasefarmer2808 0:4e6b53a7bd38 12 Serial* dev;
chasefarmer2808 1:7039ae86fe70 13 Serial* xbee;
chasefarmer2808 0:4e6b53a7bd38 14 double heading;
chasefarmer2808 0:4e6b53a7bd38 15 float pressure;
chasefarmer2808 0:4e6b53a7bd38 16 float temp;
chasefarmer2808 0:4e6b53a7bd38 17 float alt;
chasefarmer2808 2:cc07e65227ff 18 bool comm;
chasefarmer2808 1:7039ae86fe70 19 time_t startTime;
chasefarmer2808 1:7039ae86fe70 20 time_t missionTime;
chasefarmer2808 0:4e6b53a7bd38 21 HMC5883L* hmc;
chasefarmer2808 0:4e6b53a7bd38 22 BMP180* bmp;
chasefarmer2808 1:7039ae86fe70 23 Glider(Serial* device, PinName sda, PinName scl, PinName tx, PinName rx);
chasefarmer2808 2:cc07e65227ff 24 InterruptIn xbeeRxInt;
chasefarmer2808 0:4e6b53a7bd38 25 void setHeading();
chasefarmer2808 0:4e6b53a7bd38 26 void setTempPress();
chasefarmer2808 1:7039ae86fe70 27 void setMissionTime();
chasefarmer2808 2:cc07e65227ff 28 void readTime();
chasefarmer2808 0:4e6b53a7bd38 29 void saveTelem();
chasefarmer2808 2:cc07e65227ff 30 void saveData();
chasefarmer2808 1:7039ae86fe70 31 void transmitPacket();
chasefarmer2808 2:cc07e65227ff 32 void setCommand();
chasefarmer2808 2:cc07e65227ff 33 void processCommand();
chasefarmer2808 0:4e6b53a7bd38 34 };
chasefarmer2808 0:4e6b53a7bd38 35
chasefarmer2808 1:7039ae86fe70 36 #endif