Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

GPS.h

Committer:
pvaibhav
Date:
2015-04-21
Revision:
27:e71a2e4e6e3f
Child:
46:fd5a62296b12

File content as of revision 27:e71a2e4e6e3f:

#ifndef _H_GPS_H
#define _H_GPS_H

#include "mbed.h"

/// Manages the nano hornet GPS add-on chip.
class GPS
{
public:
    /// Constructor
    /// @param pc The serial (UART) port used to communicate with the GPS. Data is only received, nothing is sent to this port.
    GPS(Serial const &pc);
    
    class Delegate
    {
        virtual void gpsSync() = 0;
    };
    
    void powerOn();
    void powerOff();
    
private:
    Serial* uart;
    
};

#endif//_H_GPS_H