Jason's GPS_None pointed out a few changes that in turn drastically simplify it.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@431 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
DrZiplok@gmail.com 2010-09-07 05:57:39 +00:00
parent dd8c883995
commit 31ab494aaa
4 changed files with 13 additions and 27 deletions

View File

@ -1,19 +0,0 @@
/*
AP_GPS_None.cpp
*/
#include "AP_GPS_None.h"
AP_GPS_None::AP_GPS_None()
{
}
void AP_GPS_None::init(void)
{
}
void AP_GPS_None::update(void)
{
}

View File

@ -1,3 +1,5 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
#ifndef AP_GPS_None_h
#define AP_GPS_None_h
@ -5,12 +7,5 @@
class AP_GPS_None : public GPS
{
public:
AP_GPS_None();
void init();
void update();
private:
};
#endif

View File

@ -3,6 +3,16 @@
#include "GPS.h"
#include <stdio.h>
void
GPS::init(void)
{
}
void
GPS::update(void)
{
}
void
GPS::_error(const char *fmt, ...)
{

View File

@ -22,7 +22,7 @@ public:
///
/// @param port Stream connected to the GPS module.
///
GPS(Stream *port) : _port(port) {};
GPS(Stream *port = NULL) : _port(port) {};
/// Startup initialisation.
///