Abstraction for the glider class
Diff: Glider.h
- Revision:
- 0:4e6b53a7bd38
- Child:
- 1:7039ae86fe70
diff -r 000000000000 -r 4e6b53a7bd38 Glider.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Glider.h Sun Apr 09 05:05:52 2017 +0000 @@ -0,0 +1,27 @@ +#ifndef Glider_H +#define Glider_H + +#include "mbed.h" +#include <string> +#include "HMC5883L.h" +#include "BMP180.h" + +const string telemFile = "/telem/telem.txt"; + +class Glider { +public: + Serial* dev; + double heading; + float pressure; + float temp; + float alt; + string telemetry; + HMC5883L* hmc; + BMP180* bmp; + Glider(Serial* device, PinName sda, PinName scl); + void setHeading(); + void setTempPress(); + void saveTelem(); +}; + +#endif \ No newline at end of file