Forgot the gear ratio handling in stabilize() method, so the solver
got wrong values.
This commit is contained in:
parent
5af1e589de
commit
e8009ed8fa
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ void PropEngine::stabilize()
|
||||||
float step = 10;
|
float step = 10;
|
||||||
while(true) {
|
while(true) {
|
||||||
float ptau, dummy;
|
float ptau, dummy;
|
||||||
_prop->calc(_rho, speed, _omega, &dummy, &ptau);
|
_prop->calc(_rho, speed, _omega * _gearRatio, &dummy, &ptau);
|
||||||
_eng->calc(_pressure, _temp, _omega);
|
_eng->calc(_pressure, _temp, _omega);
|
||||||
float etau = _eng->getTorque();
|
float etau = _eng->getTorque();
|
||||||
float tdiff = etau - ptau;
|
float tdiff = etau - ptau;
|
||||||
|
|
Loading…
Add table
Reference in a new issue