]> git.mxchange.org Git - flightgear.git/commitdiff
Added two new output formats, PVE and RUL.
authorcurt <curt>
Fri, 19 Nov 1999 03:03:11 +0000 (03:03 +0000)
committercurt <curt>
Fri, 19 Nov 1999 03:03:11 +0000 (03:03 +0000)
src/Main/fg_io.cxx
src/Main/options.cxx

index 36a95295c975a1098086e442b1090ff67e266a93..e480614010168e60facae47cf64f337be95d751c 100644 (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;
     }
index 7b783e78393ced32b3dbda33de72324eac2e69cb..d8f6410284697cb6c32ec0dbe1ee9b9ad55a87b9 100644 (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;