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:
parent
d68a6d8ca1
commit
455a900b5c
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue