Abstraction for the glider class

Dependents:   DropTest

Glider.h

Committer:
chasefarmer2808
Date:
2017-04-09
Revision:
0:4e6b53a7bd38
Child:
1:7039ae86fe70

File content as of revision 0:4e6b53a7bd38:

#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