QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

handle/handleGPS.h

Committer:
dylanembed123
Date:
2014-04-10
Revision:
14:6be57da62283
Parent:
9:da906eeac51e
Child:
15:e3e03a9df89e

File content as of revision 14:6be57da62283:

#ifndef _HANDLE_GPS_H_
#define _HANDLE_GPS_H_

#include "adapt/usb.h"
#include "adapt/gps.h"

#include <string>
#include <sstream>
#include "dataLocation.h"
#include <mbed.h>
#include "gps.h"

#define MAXREADIN 256

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