FlightGear next
FGNMEA Class Reference

#include <nmea.hxx>

Inherits FGProtocol.

Inherited by FGGarmin.

Public Member Functions

 FGNMEA ()
 
 ~FGNMEA ()
 
virtual bool open ()
 
virtual bool process ()
 
virtual bool close ()
 
- Public Member Functions inherited from FGProtocol
 FGProtocol ()
 
virtual ~FGProtocol ()
 
virtual void reinit ()
 
SGProtocolDir get_direction () const
 
void set_direction (const std::string &d)
 
double get_hz () const
 
void set_hz (double t)
 
double get_count_down () const
 
void set_count_down (double c)
 
void inc_count_down (double amt)
 
void dec_count_down (double amt)
 
void inc_count ()
 
unsigned long get_count ()
 
virtual bool parse_message ()
 
bool is_enabled () const
 
void set_enabled (const bool b)
 
SGIOChannel * get_io_channel () const
 
void set_io_channel (SGIOChannel *c)
 
void set_name (const std::string &n)
 
std::string get_name () const
 

Protected Member Functions

void add_with_checksum (char *sentence, unsigned int buf_size)
 
void parse_line ()
 
virtual bool gen_message ()
 
virtual void parse_message (const std::vector< std::string > &tokens)
 

Protected Attributes

char mBuf [16384]
 
unsigned int mLength
 
unsigned int mNmeaMessages
 
unsigned int mMaxReceiveLines
 
bool mBiDirectionalSupport
 
FlightProperties mFdm
 
const char * mLineFeed
 
std::string mNmeaSentence
 

Detailed Description

Definition at line 43 of file nmea.hxx.

Constructor & Destructor Documentation

◆ FGNMEA()

FGNMEA::FGNMEA ( )

Definition at line 27 of file nmea.cxx.

◆ ~FGNMEA()

FGNMEA::~FGNMEA ( )

Definition at line 38 of file nmea.cxx.

Member Function Documentation

◆ add_with_checksum()

void FGNMEA::add_with_checksum ( char * sentence,
unsigned int buf_size )
protected

Definition at line 43 of file nmea.cxx.

◆ close()

bool FGNMEA::close ( )
virtual

Reimplemented from FGProtocol.

Definition at line 415 of file nmea.cxx.

◆ gen_message()

bool FGNMEA::gen_message ( )
protectedvirtual

Reimplemented from FGProtocol.

Reimplemented in FGFlarm, and FGGarmin.

Definition at line 61 of file nmea.cxx.

◆ open()

bool FGNMEA::open ( )
virtual

Reimplemented from FGProtocol.

Definition at line 350 of file nmea.cxx.

◆ parse_line()

void FGNMEA::parse_line ( )
protected

Definition at line 181 of file nmea.cxx.

◆ parse_message()

void FGNMEA::parse_message ( const std::vector< std::string > & tokens)
protectedvirtual

Reimplemented in FGFlarm, and FGGarmin.

Definition at line 228 of file nmea.cxx.

◆ process()

bool FGNMEA::process ( )
virtual

Reimplemented from FGProtocol.

Definition at line 380 of file nmea.cxx.

Member Data Documentation

◆ mBiDirectionalSupport

bool FGNMEA::mBiDirectionalSupport
protected

Definition at line 50 of file nmea.hxx.

◆ mBuf

char FGNMEA::mBuf[16384]
protected

Definition at line 46 of file nmea.hxx.

◆ mFdm

FlightProperties FGNMEA::mFdm
protected

Definition at line 51 of file nmea.hxx.

◆ mLength

unsigned int FGNMEA::mLength
protected

Definition at line 47 of file nmea.hxx.

◆ mLineFeed

const char* FGNMEA::mLineFeed
protected

Definition at line 52 of file nmea.hxx.

◆ mMaxReceiveLines

unsigned int FGNMEA::mMaxReceiveLines
protected

Definition at line 49 of file nmea.hxx.

◆ mNmeaMessages

unsigned int FGNMEA::mNmeaMessages
protected

Definition at line 48 of file nmea.hxx.

◆ mNmeaSentence

std::string FGNMEA::mNmeaSentence
protected

Definition at line 53 of file nmea.hxx.


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