Josh Babcock wrote: > Is there a way to get controls.throttleAxis to execute for > conditions other than the throttle input changing? Specifically, I > want it to also recalculate the throttle values when the rudder > input changes. If I can do this I can implement steering with > differential engine thrust [...]
I think the input configuration is the wrong place for this. If you have a (YASim) aircraft where lateral control is always done with differential thrust, you can map the rudder properties to the throttle axis in the aircraft configuration. If you have another subsystem that wants to do this (a fly-by-wire controller, say) then you can write some Nasal that inspects the rudder input at some reasonable frequency and generates throttle changes dynamically without touching the joystick definition. The core problem is that there isn't a good (i.e. generic, non-aircraft-specific) way to tell whether a given engine index refers to a "left" engine or a "right" engine, or how far they are from the center of gravity. Any real-world system that did this would need a lot of specific tuning for a given aircraft. But the joystick files are generic -- they don't know from aircraft, they just map specific PC hardware to well-understood input abstractions like "rudder" or "throttle". Andy _______________________________________________ Flightgear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
