On 5/24/07, Javky wrote:
I solved this problem with this condition:
if ( volts node-get_volts() || node-get_volts()==0 )
I know, it's not the best, but it works (I think much more better than 24
volts everywhere and useless switches).
The correct solution is to fill the internal structures
Hi Harald,
Harald JOHNSEN wrote:
This lines only initialize the internal values of the electrical system.
The properties are set in the propagate function :
// publish values to specified properties
for ( i = 0; i node-get_num_props(); ++i ) {
fgSetFloat(
Martin Spott wrote:
Why is setting to 0.0 not sufficient to reach the desired goal ?
Martin.
This lines only initialize the internal values of the electrical system.
The properties are set in the propagate function :
// publish values to specified properties
for ( i =
Harald JOHNSEN wrote:
this patch will propagate zero volt to the output properties
when...there is no current at all.
[...]
RCS file: /var/cvs/FlightGear-0.9/source/src/Systems/electrical.cxx,v
retrieving revision 1.35.2.1
diff -u -r1.35.2.1 electrical.cxx
--- electrical.cxx 11 May
Hi,
this patch will propagate zero volt to the output properties
when...there is no current at all.
Atm if you switch all inputs off (alt bat switches) you still have 24v
at the outputs.
Harald.
Index: electrical.cxx
===
RCS
5 matches
Mail list logo