#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>
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;
}
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;