#include <Network/fg_socket.hxx>
#include <Network/protocol.hxx>
+#include <Network/native.hxx>
#include <Network/garmin.hxx>
#include <Network/nmea.hxx>
#include <Network/pve.hxx>
FG_LOG( FG_IO, FG_INFO, " protocol = " << protocol );
FGProtocol *io;
- if ( protocol == "garmin" ) {
+ if ( protocol == "native" ) {
+ FGNative *native = new FGNative;
+ io = native;
+ } else if ( protocol == "garmin" ) {
FGGarmin *garmin = new FGGarmin;
io = garmin;
} else if ( protocol == "nmea" ) {
//
// Format is "--protocol=medium,direction,hz,medium_options,..."
//
-// protocol = { nmea, garmin, fgfs, rul, pve, etc. }
+// protocol = { native, nmea, garmin, fgfs, rul, pve, etc. }
// medium = { serial, socket, file, etc. }
// direction = { in, out, bi }
// hz = number of times to process channel per second (floating
tris_or_culled = 0;
} else if ( arg == "--hud-culled" ) {
tris_or_culled = 1;
- } else if ( arg.find( "--fgfs=" ) != string::npos ) {
- parse_channel( "fgfs", arg.substr(7) );
+ } else if ( arg.find( "--native=" ) != string::npos ) {
+ parse_channel( "native", arg.substr(9) );
} else if ( arg.find( "--garmin=" ) != string::npos ) {
parse_channel( "garmin", arg.substr(9) );
} else if ( arg.find( "--nmea=" ) != string::npos ) {