From 6d1c383814c5f7d4c137cbc5f319060e5dbc9696 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 27 Jul 2001 14:23:01 +0000 Subject: [PATCH] Added protocol to output out complete control positions. --- src/Main/fg_io.cxx | 4 ++++ src/Main/options.cxx | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/Main/fg_io.cxx b/src/Main/fg_io.cxx index 4a75a78fb..9823a6311 100644 --- a/src/Main/fg_io.cxx +++ b/src/Main/fg_io.cxx @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -85,6 +86,9 @@ static FGProtocol *parse_port_config( const string& config ) } else if ( protocol == "native" ) { FGNative *native = new FGNative; io = native; + } else if ( protocol == "native_ctrls" ) { + FGNativeCtrls *native_ctrls = new FGNativeCtrls; + io = native_ctrls; } else if ( protocol == "nmea" ) { FGNMEA *nmea = new FGNMEA; io = nmea; diff --git a/src/Main/options.cxx b/src/Main/options.cxx index efdaf3020..36ec8d48c 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -792,6 +792,8 @@ parse_option (const string& arg) parse_channel( "atlas", arg.substr(8) ); } else if ( arg.find( "--native=" ) == 0 ) { parse_channel( "native", arg.substr(9) ); + } else if ( arg.find( "--native-ctrls=" ) == 0 ) { + parse_channel( "native_ctrls", arg.substr(15) ); } else if ( arg.find( "--garmin=" ) == 0 ) { parse_channel( "garmin", arg.substr(9) ); } else if ( arg.find( "--nmea=" ) == 0 ) { -- 2.39.5