return amps;
} else if ( model == FG_ALTERNATOR ) {
// scale alternator output for rpms < 600. For rpms >= 600
- // give full output. This is just a WAG, but I'm keeping
- // things simple to start.
+ // give full output. This is just a WAG, and probably not how
+ // it really works but I'm keeping things "simple" to start.
double rpm = _rpm_node->getDoubleValue();
double factor = rpm / 600.0;
if ( factor > 1.0 ) {
// cout << "external amps = " << 0.0 << endl;
return 0.0;
} else {
- cout << "unknown supplier type" << endl;
+ SG_LOG( SG_ALL, SG_ALERT, "unknown supplier type" );
}
return 0.0;
}
// cout << s << " val = " << current << endl;
} else {
- cout << "unkown node type" << endl;
+ SG_LOG( SG_ALL, SG_ALERT, "unkown node type" );
}
if ( current > node->get_value() ) {