FlightGear next
FGGarmin Class Reference

#include <garmin.hxx>

Inherits FGNMEA.

Inherited by FGFlarm.

Public Member Functions

 FGGarmin ()
 
 ~FGGarmin ()
 
virtual bool gen_message ()
 
- Public Member Functions inherited from FGNMEA
 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

virtual void parse_message (const std::vector< std::string > &tokens)
 
- Protected Member Functions inherited from FGNMEA
void add_with_checksum (char *sentence, unsigned int buf_size)
 
void parse_line ()
 

Protected Attributes

unsigned int mGarminMessages
 
bool mMetric
 
- Protected Attributes inherited from FGNMEA
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 38 of file garmin.hxx.

Constructor & Destructor Documentation

◆ FGGarmin()

FGGarmin::FGGarmin ( )

Definition at line 34 of file garmin.cxx.

◆ ~FGGarmin()

FGGarmin::~FGGarmin ( )

Definition at line 50 of file garmin.cxx.

Member Function Documentation

◆ gen_message()

bool FGGarmin::gen_message ( )
virtual

Reimplemented from FGNMEA.

Reimplemented in FGFlarm.

Definition at line 56 of file garmin.cxx.

◆ parse_message()

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

Reimplemented from FGNMEA.

Reimplemented in FGFlarm.

Definition at line 79 of file garmin.cxx.

Member Data Documentation

◆ mGarminMessages

unsigned int FGGarmin::mGarminMessages
protected

Definition at line 42 of file garmin.hxx.

◆ mMetric

bool FGGarmin::mMetric
protected

Definition at line 43 of file garmin.hxx.


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