FlightGear
next
garmin.hxx
Go to the documentation of this file.
1
// garmin.hxx -- Garmin protocol class
2
//
3
// Written by Curtis Olson, started November 1999.
4
//
5
// Copyright (C) 1999 Curtis L. Olson - http://www.flightgear.org/~curt
6
//
7
// This program is free software; you can redistribute it and/or
8
// modify it under the terms of the GNU General Public License as
9
// published by the Free Software Foundation; either version 2 of the
10
// License, or (at your option) any later version.
11
//
12
// This program is distributed in the hope that it will be useful, but
13
// WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
// General Public License for more details.
16
//
17
// You should have received a copy of the GNU General Public License
18
// along with this program; if not, write to the Free Software
19
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
//
21
// $Id$
22
23
#ifndef _FG_GARMIN_HXX
24
#define _FG_GARMIN_HXX
25
26
#include "
nmea.hxx
"
27
28
namespace
NMEA
29
{
30
// Garmin proprietary messages
31
namespace
GARMIN
32
{
33
const
unsigned
int
PGRMZ
= (1<<0);
34
}
35
}
36
37
38
class
FGGarmin
:
public
FGNMEA
{
39
40
41
protected
:
42
unsigned
int
mGarminMessages
;
43
bool
mMetric
;
44
45
// process a Garmin sentence
46
virtual
void
parse_message
(
const
std::vector<std::string>& tokens);
47
48
public
:
49
FGGarmin
();
50
~FGGarmin
();
51
52
virtual
bool
gen_message
();
53
};
54
55
#endif
// _FG_GARMIN_HXX
FGGarmin::mGarminMessages
unsigned int mGarminMessages
Definition
garmin.hxx:42
FGGarmin::FGGarmin
FGGarmin()
Definition
garmin.cxx:34
FGGarmin::~FGGarmin
~FGGarmin()
Definition
garmin.cxx:50
FGGarmin::gen_message
virtual bool gen_message()
Definition
garmin.cxx:56
FGGarmin::mMetric
bool mMetric
Definition
garmin.hxx:43
FGNMEA::FGNMEA
FGNMEA()
Definition
nmea.cxx:27
FGProtocol::parse_message
virtual bool parse_message()
Definition
protocol.cxx:105
NMEA::GARMIN
Definition
garmin.hxx:32
NMEA::GARMIN::PGRMZ
const unsigned int PGRMZ
Definition
garmin.hxx:33
NMEA
Definition
flarm.hxx:29
nmea.hxx
src
Network
garmin.hxx
Generated on Tue Jun 3 2025 12:58:41 for FlightGear by
1.13.2