1
0
Fork 0

Constant-speed props were seeking to engine speed, not prop speed.

This commit is contained in:
andy 2005-01-26 18:30:45 +00:00
parent 73541395cc
commit 671bffe9af

View file

@ -216,7 +216,8 @@ void PropEngine::integrate(float dt)
// _current_ RPM. Seek to that. This is sort of a continuous
// Newton-Raphson, basically.
if(_variable) {
float targetOmega = _minOmega + _advance*(_maxOmega-_minOmega);
float targetPropSpd = _minOmega + _advance*(_maxOmega-_minOmega);
float targetOmega = targetPropSpd / _gearRatio; // -> "engine omega"
float ratio2 = (_omega*_omega)/(targetOmega*targetOmega);
float targetTorque = engTorque * ratio2;