1
0
Fork 0

Allow a switch definition in the electrical system configuration to have

a <rating-amps> tag which also implies that the switch is a circuit breaker.

Eventually we could have code that will automatically trip the breaker if
the current exceeds the rating.
This commit is contained in:
curt 2003-11-18 21:17:33 +00:00
parent d68a6d8ca1
commit 455a900b5c

View file

@ -151,6 +151,10 @@ FGElectricalSwitch::FGElectricalSwitch( SGPropertyNode *node ) :
initial_state = false;
}
// cout << "initial state = " << initial_state << endl;
} else if ( cname == "rating-amps" ) {
rating_amps = atof( cval.c_str() );
circuit_breaker = true;
// cout << "initial state = " << initial_state << endl;
}
}