Abstraction for the glider class

Dependents:   DropTest

Glider.h

Committer:
chasefarmer2808
Date:
2017-04-13
Revision:
5:460412fc4a17
Parent:
4:ff59603d9fb6
Child:
6:bb82dd1618c2

File content as of revision 5:460412fc4a17:

#ifndef Glider_H
#define Glider_H

#include "mbed.h"
#include <string>
#include <sstream>
#include "HMC5883L.h"
#include "BMP180.h"

#define BUZZER 'b'
#define FREQ 1.0

class Glider {
public:
    Serial* dev;
    Serial* xbee;
    double heading;
    float pressure;
    float temp;
    float alt;
    bool comm;
    bool transmitFlag;
    time_t startTime;
    time_t missionTime;
    uint8_t packetCount;
    HMC5883L* hmc;
    BMP180* bmp;
    Glider(Serial* device, PinName sda, PinName scl, PinName tx, PinName rx);
    InterruptIn xbeeRxInt;
    void setHeading();
    void setTempPress();
    void setMissionTime();
    void setTransmitFlag();
    void initSaveData();
    void saveTelem();
    void saveData();
    void transmitPacket();
    void setCommandFlag();
    void processCommand();
};

#endif