}
volts = node->getDoubleValue("volts");
amps = node->getDoubleValue("amps");
+ rpm_src = node->getStringValue("rpm-source");
int i;
for ( i = 0; i < node->nChildren(); ++i ) {
}
}
- _rpm_node = fgGetNode("/engines/engine[0]/rpm", true);
+ _rpm_node = fgGetNode( rpm_src.c_str(), true);
}
// set all switches to the specified state
void FGElectricalConnector::set_switches( bool state ) {
- cout << "setting switch state to " << state << endl;
+ // cout << "setting switch state to " << state << endl;
for ( unsigned int i = 0; i < switches.size(); ++i ) {
switches[i]->setBoolValue( state );
}