//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
node->setDoubleValue( "elevator-trim", net->elevator_trim );
node->setDoubleValue( "rudder-trim", net->rudder_trim );
node->setDoubleValue( "flaps", net->flaps );
+ node->setDoubleValue( "speedbrake", net->speedbrake ); //JWW
+ // or
+ node->setDoubleValue( "spoilers", net->spoilers ); //JWW
+// cout << "NET->Spoilers: " << net->spoilers << endl;
fgSetBool( "/systems/electrical/outputs/flaps", net->flaps_power );
node->setBoolValue( "flaps-serviceable", net->flap_motor_ok );
->setDoubleValue( net->condition[i] );
node->getChild( "magnetos" )->setDoubleValue( net->magnetos[i] );
node->getChild( "starter" )->setDoubleValue( net->starter_power[i] );
-
+ node->getChild( "feed_tank" )->setIntValue( net->feed_tank_to[i] );
+ node->getChild( "reverser" )->setBoolValue( net->reverse[i] );
// Faults
SGPropertyNode *faults = node->getNode( "faults", true );
faults->setBoolValue( "serviceable", net->engine_ok[i] );
node = fgGetNode( "/controls/fuel/tank", i );
node->getChild( "fuel_selector" )
->setBoolValue( net->fuel_selector[i] );
+// node->getChild( "to_tank" )->xfer_tank( i, net->xfer_to[i] );
}
node = fgGetNode( "/controls/gear" );
if ( node != NULL ) {
node = fgGetNode( "/controls/gear", true );
node->setBoolValue( "gear-down", net->gear_handle );
+// node->setDoubleValue( "brake-parking", net->brake_parking );
+// node->setDoubleValue( net->brake_left );
+// node->setDoubleValue( net->brake_right );
node = fgGetNode( "/controls/switches", true );
node->setBoolValue( "master-bat", net->master_bat );
// ground elevation ???
fgSetDouble("/hazards/icing/wing", net->icing);
+
+ node = fgGetNode( "/radios", true );
+ node->setDoubleValue( "comm/frequencies/selected-mhz[0]", net->comm_1 );
+ node->setDoubleValue( "nav/frequencies/selected-mhz[0]", net->nav_1 );
+ node->setDoubleValue( "nav[1]/frequencies/selected-mhz[0]", net->nav_2 );
fgSetInt( "/sim/speed-up", net->speedup );