1
0
Fork 0

Forgot the gear ratio handling in stabilize() method, so the solver

got wrong values.
This commit is contained in:
andy 2004-01-25 18:57:11 +00:00
parent 5af1e589de
commit e8009ed8fa

View file

@ -111,7 +111,7 @@ void PropEngine::stabilize()
float step = 10;
while(true) {
float ptau, dummy;
_prop->calc(_rho, speed, _omega, &dummy, &ptau);
_prop->calc(_rho, speed, _omega * _gearRatio, &dummy, &ptau);
_eng->calc(_pressure, _temp, _omega);
float etau = _eng->getTorque();
float tdiff = etau - ptau;