1
0
Fork 0

Added protocol to output out complete control positions.

This commit is contained in:
curt 2001-07-27 14:23:01 +00:00
parent 937840383c
commit 6d1c383814
2 changed files with 6 additions and 0 deletions

View file

@ -38,6 +38,7 @@
#include <Network/garmin.hxx>
#include <Network/joyclient.hxx>
#include <Network/native.hxx>
#include <Network/native_ctrls.hxx>
#include <Network/nmea.hxx>
#include <Network/props.hxx>
#include <Network/pve.hxx>
@ -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;

View file

@ -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 ) {