Make the GPS ctor protected so that it can't be accidentally constructed or copied.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1353 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
DrZiplok@gmail.com 2010-12-29 03:32:37 +00:00
parent 75e78dabae
commit f2f38f2e71
1 changed files with 9 additions and 9 deletions

View File

@ -15,15 +15,6 @@ class GPS
{
public:
/// Constructor
///
/// @note The stream is expected to be set up and configured for the
/// correct bitrate before ::init is called.
///
/// @param s Stream connected to the GPS module.
///
GPS(Stream *s) : _port(s) {};
/// Update GPS state based on possible bytes received from the module.
///
/// This routine must be called periodically to process incoming data.
@ -87,6 +78,15 @@ public:
protected:
Stream *_port; ///< port the GPS is attached to
/// Constructor
///
/// @note The stream is expected to be set up and configured for the
/// correct bitrate before ::init is called.
///
/// @param s Stream connected to the GPS module.
///
GPS(Stream *s) : _port(s) {};
/// read from the GPS stream and update properties
///
/// Must be implemented by the GPS driver.