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 structur
Quoting Harald JOHNSEN <[EMAIL PROTECTED]>:
> Martin Spott wrote:
>
> >Hi Harald,
> >
> >
> >
> >I still don't understand why it should be required to initialize these
> >values to -0.01 instead of 0.0. If power switches are off, then 0.0 is
> >the correct value "by definition" (TM). If some condi
Martin Spott wrote:
>Hi Harald,
>
>
>
>I still don't understand why it should be required to initialize these
>values to -0.01 instead of 0.0. If power switches are off, then 0.0 is
>the correct value "by definition" (TM). If some conditional statement
>doesn't handle this, then probably the con
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 (
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 M
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
7 matches
Mail list logo