ot::GPSDirectionSource Class Reference
#include <GPSDirectionSource.h>
Inheritance diagram for ot::GPSDirectionSource:


Public Member Functions | |
| virtual int | isEventGenerator () |
| virtual void | newData (const GPResult *point, const char *line, void *userData) |
Public Attributes | |
| Event | event |
| Event | buffer |
Protected Member Functions | |
| GPSDirectionSource () | |
Friends | |
| class | GPSModule |
Detailed Description
Definition at line 77 of file GPSDirectionSource.h.
Constructor & Destructor Documentation
| ot::GPSDirectionSource::GPSDirectionSource | ( | ) | [inline, protected] |
protected constructor so it is only accessible by the module
Definition at line 98 of file GPSDirectionSource.h.
Member Function Documentation
| virtual int ot::GPSDirectionSource::isEventGenerator | ( | ) | [inline, virtual] |
tests for EventGenerator interface being present.
Is overriden to return 1 always.
- Returns:
- always 1
Reimplemented from ot::Node.
Definition at line 89 of file GPSDirectionSource.h.
| void ot::GPSDirectionSource::newData | ( | const GPResult * | point, | |
| const char * | line, | |||
| void * | userData | |||
| ) | [inline, virtual] |
This is the callback method called by the GPSDriver class, whenever new data arrives.
Any subclasses of GPSListener must override it to receive the data.
- Parameters:
-
point pointer to the GPResult object that represents the parsed data. line the corresponding string received from the GPS receiver. uderData a pointer to user data stored when registering the listener.
Implements ot::GPSListener.
Definition at line 103 of file GPSDirectionSource.h.
References ot::MathUtils::axisAngleToQuaternion(), buffer, ot::copyA2V(), ot::GPSModule::driver, ot::Event::getConfidence(), ot::GPSDriver::getHdop(), ot::Event::getOrientation(), ot::Event::getPosition(), ot::GPResult::GPVTG, ot::MathUtils::GradToRad, ot::GPSDriver::hasFix(), ot::ThreadModule::lock(), ot::GPVTG::speedKlm, ot::Event::timeStamp(), ot::GPVTG::trueCourse, ot::GPResult::type, and ot::ThreadModule::unlock().
Friends And Related Function Documentation
friend class GPSModule [friend] |
Definition at line 98 of file GPSDirectionSource.h.
Member Data Documentation
the buffer event for data from the GPS receiver
Definition at line 84 of file GPSDirectionSource.h.
Referenced by newData().
The documentation for this class was generated from the following file: