1
0
Fork 0

Added two new output formats, PVE and RUL.

This commit is contained in:
curt 1999-11-19 03:03:11 +00:00
parent 2c7625351a
commit 1f66606440
2 changed files with 16 additions and 4 deletions

View file

@ -48,6 +48,8 @@
#include <Network/protocol.hxx>
#include <Network/garmin.hxx>
#include <Network/nmea.hxx>
#include <Network/pve.hxx>
#include <Network/rul.hxx>
// #include <Time/fg_time.hxx>
#include <Time/timestamp.hxx>
@ -79,12 +81,18 @@ static FGProtocol *parse_port_config( const string& config )
FG_LOG( FG_IO, FG_INFO, " protocol = " << protocol );
FGProtocol *io;
if ( protocol == "nmea" ) {
FGNMEA *nmea = new FGNMEA;
io = nmea;
} else if ( protocol == "garmin" ) {
if ( protocol == "garmin" ) {
FGGarmin *garmin = new FGGarmin;
io = garmin;
} else if ( protocol == "nmea" ) {
FGNMEA *nmea = new FGNMEA;
io = nmea;
} else if ( protocol == "pve" ) {
FGPVE *pve = new FGPVE;
io = pve;
} else if ( protocol == "rul" ) {
FGRUL *rul = new FGRUL;
io = rul;
} else {
return NULL;
}

View file

@ -752,6 +752,10 @@ int fgOPTIONS::parse_option( const string& arg ) {
parse_channel( "garmin", arg.substr(9) );
} else if ( arg.find( "--nmea=" ) != string::npos ) {
parse_channel( "nmea", arg.substr(7) );
} else if ( arg.find( "--pve=" ) != string::npos ) {
parse_channel( "pve", arg.substr(6) );
} else if ( arg.find( "--rul=" ) != string::npos ) {
parse_channel( "rul", arg.substr(6) );
#ifdef FG_NETWORK_OLK
} else if ( arg == "--net-hud" ) {
net_hud_display = 1;