INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

gbxgarminacfr::Driver Class Reference

#include <driver.h>

List of all members.

Public Member Functions

 Driver (const Config &config, gbxutilacfr::Tracer &tracer, gbxutilacfr::Status &status)
std::auto_ptr< GenericDataread ()


Detailed Description

Garmin GPS driver.

All Garmin receivers understand the latest NMEA standard which is called: 0183 version 2.0.

This standard dictates a transfer rate of 4800 baud.

This driver can read only the following messages (sentences):

  • GPGGA fix data
  • PGRME (estimated error) - not sent if set to 0183 1.5
  • GPVTG vector track and speed over ground

Processing of individual messages can be disabled in the Config structure.

Note that when fixType contained in the GPGGA is Invalid, all other data in all messages except the time stamps are meaningless.

Referennces:


Constructor & Destructor Documentation

Driver::Driver ( const Config config,
gbxutilacfr::Tracer tracer,
gbxutilacfr::Status status 
)

Constructor

gbxutilacfr::Tracer and gbxutilacfr::Status allow (human-readable and machine-readable respectively) external monitorining of the driver's internal state.


Member Function Documentation

std::auto_ptr< GenericData > Driver::read (  ) 

Blocks till new data is available.

Throws gbxutilacfr::Exception when a problem is encountered.

std::auto_ptr<gbxgarminacfr::GenericData> data;

try {
    data = device->read();
}
catch ( const std::exception& e ) {
    cout <<"Test: Failed to read data: "<<e.what()<<endl;
} 


The documentation for this class was generated from the following files:
 

Generated for GearBox by  doxygen 1.4.5