Seamus Thomas Carroll wrote: > The fuel levels seem to retrieve correctly. > I then added the following code to set the fuel levels for when the c172 aircraft starts: > fgSetDouble( "/consumables/fuel/tank[0]/level-gal_us", tank1 ); > fgSetDouble( "/consumables/fuel/tank[1]/level-gal_us", tank2 );
The 172 is a JSBSim aircraft, so Jon or one of the JSB crew will have to provide specifics about this particular situation. But for YASim aircraft (really: users of the Nasal fuel system), this will not work. You can set the current fuel only using the level-lbs properties. The -gal_us and -norm are output-only convenience properties that may be useful to panel code. Setting them is a noop; their values will be clobbered by the FDM. If I remember correctly, JSBSim does not currently support setting fuel state through the property system. Instead, since you are in C++, you should be able to find an interface there. Andy _______________________________________________ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d