- if ( protocol == "atc610x" ) {
- FGATC610x *atc610x = new FGATC610x;
- atc610x->set_hz( 30 );
- if ( tokens.size() > 1 ) {
- if ( tokens[1] == "no-rudder" ) {
- atc610x->set_use_rudder( false );
- }
+ if ( protocol == "atcsim" ) {
+ FGATCMain *atcsim = new FGATCMain;
+ atcsim->set_hz( 30 );
+ if ( tokens.size() != 6 ) {
+ SG_LOG( SG_IO, SG_ALERT, "Usage: --atcsim=[no-]pedals,"
+ << "input0_config,input1_config,"
+ << "output0_config,output1_config,file.nas" );
+ delete atcsim;
+ return NULL;
+ }
+ if ( tokens[1] == "no-pedals" ) {
+ fgSetBool( "/input/atcsim/ignore-pedal-controls", true );
+ } else {
+ fgSetBool( "/input/atcsim/ignore-pedal-controls", false );