]> git.mxchange.org Git - flightgear.git/commit
Curt:
authorcurt <curt>
Tue, 20 Jul 2004 22:17:58 +0000 (22:17 +0000)
committercurt <curt>
Tue, 20 Jul 2004 22:17:58 +0000 (22:17 +0000)
commit77e21b26d2134c64da137a964cada55f78b03a7e
tree9440f16997fbee583aa3ae81ed8f353704368fe5
parentabb0221c74c0c47fdc355d73b89ae5feac1bf5b8
Curt:

Stub in hooks for Propeller feathering controls and the turbo prop "condition"
lever.

I added a line in FGFDM.cpp to force control properties to exist if they
don't already.  This way you can specify anything you want and find them
in the property browser, otherwise no one else may create them and you are
stuck.

In PropEngine::solve() the code original sets _running = true at the
beginning and then sets running = false at the end.  I changed this to
save the current value at the start, set to true, solve(), and then
restore the original value at the end.  That way if we start off with
_running = true, we don't have to hack up the calc() routine which wasn't
using the value anyway.

Finally I added some very initial support to shut down a turbine engine
(_running = false) when the condition lever goes to zero.
src/FDM/YASim/ControlMap.cpp
src/FDM/YASim/ControlMap.hpp
src/FDM/YASim/FGFDM.cpp
src/FDM/YASim/PropEngine.cpp
src/FDM/YASim/PropEngine.hpp
src/FDM/YASim/Propeller.cpp
src/FDM/YASim/Propeller.hpp
src/FDM/YASim/Thruster.cpp
src/FDM/YASim/TurbineEngine.cpp
src/FDM/YASim/TurbineEngine.hpp