Andy Ross wrote:
> 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
>
This doesn't really have anything to do with aircraft. All it presumes
is that the engines are numbered from left to right. I know this is not
a safe assumption, but I plan to solve this problem later. Basically all
I am trying to do is be able to simulate the practice of steering with
the throttles on the ground:
Turning right:
O
| O
| | O
| | | O
| | | |
Turning left:
O
O |
O | |
O | | |
| | | |
Using this on arbitrary aircraft for yaw control in the air will be fun,
but most likely non-productive.
If I get an aircraft that doesn't have it's engines numbered right I
will be able to turn it off (there will be an intensity property that
will be set to zero for this)
Josh
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d