QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

handle/handleGPS.h

Committer:
dylanembed123
Date:
2014-04-03
Revision:
9:da906eeac51e
Parent:
8:28b866df62cf
Child:
14:6be57da62283

File content as of revision 9:da906eeac51e:

#ifndef _HANDLEGPS_H_
#define _HANDLEGPS_H_

#include "adapt/usb.h"
#include "adapt/gps.h"
#ifndef _HANDLE_GPS_H_
#define _HANDLE_GPS_H_
#include <string>
#include <sstream>
class GPSHandle{
private:
    GPS gps;
    bool initialized;
    
    /// \brief Setup
    void setup();
    /// \brief Check if it is time to update
    bool check();
public:
    /// \brief Constructor
    GPSHandle():initialized(false){}
    
    void sendGpsCommand(std::string command);
    
    //handle incoming com from GPS hardware
    void handleUpdate();
    
    /// \brief Run an instance of this
    void run();
};
#endif
#endif