>I noticed recently that electrical outputs still show a voltage (frozen)
>when a switch is shut off.Is there a reason for this ... or is it a work
>in progress?
>The reason I ask is that I want to animate lights by the voltage rather
>than switch position ... (dimming lights as the battery voltage drops ,
>etc...).I just want to know if this is the way it is going to operate ,
>and I can change my animations.... (I'm currently working on the
>overhead light switch panel in the B1900D).Thanks in advance, I know how
>busy everyone is .Cheers
I am still learning the electrical system model. I like to see all the
electrical devices and switches work as in real life. If the master
avionics switch is off or the battery is dead, the autopilot should
not be displaying anything or operating.
For the autopilot, I set a power-good property (like mainboards have)
and use NASAL to check for sufficient output on the autopilot bus. For
example:
ap_pwr = getprop("/systems/electrical/outputs/autopilot[0]");
if( ap_pwr >= 0.3) {
print("Digitrak: Power Good");
setprop(Internal, "power-good", "on");
} else {
print("Digitrak (Warning): Insufficient power.");
setprop(Internal, "power-good", "off");
}
This seems to work well. The Digitrak requires 0.3 amp.
On the other hand, I am still confused about some aspects of the
electrical system.
/systems/electrical/volts
/systems/electrical/amps
both seem to be read only properties. I suppose this makes sense, if
these are just monitoring the flow (but at what point?) and the system
is modeled as suppliers and outputs of electricity. Any adjustments
would be made at the supply side.
I can change
/systems/electrical/serviceable
but it appears to do nothing.
However,
/systems/electrical/suppliers/alternator
/systems/electrical/suppliers/battery
/systems/electrical/suppliers/external
are also read only. It appears all the outputs are ready only
/systems/electrical/outputs/*
I am left looking for where the actual source of electrical power is
specified. Looking at the electrical.xml the properties are defined
here.
I can change the initial value of the battery in amps from here (shows
up /systems/electrical/suppliers/battery), but lowering it to 5 amps
did not seem to affect the a/c.
Okay, if I set both battery and alternator to 0.1 amps in the config,
my autopilot fails power good. It appears the turn coordinator also
fails. Flaps still work (this is the Cessna). Radios work. ADF works.
Clock works. Fuel, Temp, Flow gauges all work, the AMPs show zero.
This suggests many instruments do not check the electrical properties.
The a/c engine turns over and works fine without a battery or
alternator (magneto?).
I am unsure how the output properties are affected by switches or if
they can be.
Steve
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d