Abstraction for the glider class

Dependents:   DropTest

Glider.h

Committer:
chasefarmer2808
Date:
2017-04-10
Revision:
1:7039ae86fe70
Parent:
0:4e6b53a7bd38
Child:
2:cc07e65227ff

File content as of revision 1:7039ae86fe70:

#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;
    Serial* xbee;
    double heading;
    float pressure;
    float temp;
    float alt;
    time_t startTime;
    time_t missionTime;
    HMC5883L* hmc;
    BMP180* bmp;
    Glider(Serial* device, PinName sda, PinName scl, PinName tx, PinName rx);
    void setHeading();
    void setTempPress();
    void setMissionTime();
    void saveTelem();
    void transmitPacket();
};

#endif