Jim Wilson wrote:
> Now I'm finding that we're seeking the engine rpm instead of the
> prop-rpm.
Andy Ross wrote:
> If an attribute on the propeller tag takes engine RPM, then that
> would be a bug.
See? I was exactly right. :)
Can you try the following fix to PropEngine.cpp? That should fix it,
but I can't test right now.
Andy
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/YASim/PropEngine.cpp,v
retrieving revision 1.13
diff -u -r1.13 PropEngine.cpp
--- PropEngine.cpp 13 Dec 2004 23:48:43 -0000 1.13
+++ PropEngine.cpp 26 Jan 2005 00:58:52 -0000
@@ -216,7 +216,8 @@
// _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;
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d