Abstraction for the glider class

Dependents:   DropTest

Committer:
chasefarmer2808
Date:
Mon Apr 10 17:33:41 2017 +0000
Revision:
1:7039ae86fe70
Parent:
0:4e6b53a7bd38
Child:
2:cc07e65227ff
test

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 0:4e6b53a7bd38 6 #include "HMC5883L.h"
chasefarmer2808 0:4e6b53a7bd38 7 #include "BMP180.h"
chasefarmer2808 0:4e6b53a7bd38 8
chasefarmer2808 0:4e6b53a7bd38 9 const string telemFile = "/telem/telem.txt";
chasefarmer2808 0:4e6b53a7bd38 10
chasefarmer2808 0:4e6b53a7bd38 11 class Glider {
chasefarmer2808 0:4e6b53a7bd38 12 public:
chasefarmer2808 0:4e6b53a7bd38 13 Serial* dev;
chasefarmer2808 1:7039ae86fe70 14 Serial* xbee;
chasefarmer2808 0:4e6b53a7bd38 15 double heading;
chasefarmer2808 0:4e6b53a7bd38 16 float pressure;
chasefarmer2808 0:4e6b53a7bd38 17 float temp;
chasefarmer2808 0:4e6b53a7bd38 18 float alt;
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 0:4e6b53a7bd38 24 void setHeading();
chasefarmer2808 0:4e6b53a7bd38 25 void setTempPress();
chasefarmer2808 1:7039ae86fe70 26 void setMissionTime();
chasefarmer2808 0:4e6b53a7bd38 27 void saveTelem();
chasefarmer2808 1:7039ae86fe70 28 void transmitPacket();
chasefarmer2808 0:4e6b53a7bd38 29 };
chasefarmer2808 0:4e6b53a7bd38 30
chasefarmer2808 1:7039ae86fe70 31 #endif