Re: [Flightgear-devel] Electrical system properties
On Thu, Sep 15, 2005 at 09:57:56PM -0400, Steve Knoblock wrote: In NASAL, when I write elec = getprop(/systems/electrical/volts[0]); print(elec:); print(elec); It prints nothing. If you do that at startup time, the property may not be known yet. In this case use something like INIT = func { elec = ... } settimer(INIT, 0); ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
[Flightgear-devel] Electrical system properties
Are the electrical system properties readable? In NASAL, when I write elec = getprop(/systems/electrical/volts[0]); print(elec:); print(elec); It prints nothing. The same for /systems/electrical/outputs/bus-avionics[0] but when I substitute /consumables/fuel/tank/level-gal_us[0] it reports a correct value. The docs say that my script can monitor the property name associated with an output to decide how to render an instrument. I have checked the spelling and it looks correct to the value I see in the viewer flying the Cessna 172. Thanks, Steve ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d