Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

GPS.h

Committer:
pvaibhav
Date:
2015-05-27
Revision:
46:fd5a62296b12
Parent:
27:e71a2e4e6e3f

File content as of revision 46:fd5a62296b12:

#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