Added iGps interface

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
This commit is contained in:
Stefan Andritoiu
2018-06-20 18:34:33 +03:00
committed by Serban Waltter
parent 024fd308fa
commit 5a5a034248
2 changed files with 56 additions and 3 deletions

View File

@ -37,6 +37,7 @@
#include <vector>
#include "nmea_gps.h"
#include <interfaces/iGps.hpp>
namespace upm {
/**
@ -192,7 +193,7 @@ namespace upm {
std::string __str__();
};
class NMEAGPS {
class NMEAGPS : virtual public iGps {
public:
/**
@ -254,7 +255,7 @@ namespace upm {
*
* @param enable true to enable the device, false otherwise.
*/
void enable(bool enable);
virtual void enable(bool enable);
/**
* Set the baudrate of the device. By default, the constructor
@ -263,7 +264,7 @@ namespace upm {
*
* @param baudrate The baud rate to set for the device.
*/
void setBaudrate(unsigned int baudrate);
virtual void setBaudrate(unsigned int baudrate);
/**
* Determine whether there is data available to be read. In the