Patch from Huntley Palmer to control condition axis
This commit is contained in:
parent
a13f9b3bb0
commit
bbbf52f47e
1 changed files with 4 additions and 1 deletions
|
@ -147,6 +147,7 @@ var perIndexAxisHandler = func(pre, post) {
|
||||||
# 0 - throttle
|
# 0 - throttle
|
||||||
# 1 - mixture
|
# 1 - mixture
|
||||||
# 2 - propeller-pitch
|
# 2 - propeller-pitch
|
||||||
|
# 3 - condition
|
||||||
# The argument engine to the returned function can be either an
|
# The argument engine to the returned function can be either an
|
||||||
# engine number or a list of engine numbers.
|
# engine number or a list of engine numbers.
|
||||||
# Usage example (controlling the mixture of engines 0 and 1):
|
# Usage example (controlling the mixture of engines 0 and 1):
|
||||||
|
@ -159,7 +160,9 @@ var _axisMode = {
|
||||||
1: perIndexAxisHandler("/controls/engines/engine[",
|
1: perIndexAxisHandler("/controls/engines/engine[",
|
||||||
"]/mixture"),
|
"]/mixture"),
|
||||||
2: perIndexAxisHandler("/controls/engines/engine[",
|
2: perIndexAxisHandler("/controls/engines/engine[",
|
||||||
"]/propeller-pitch")
|
"]/propeller-pitch"),
|
||||||
|
3: perIndexAxisHandler("/controls/engines/engine[",
|
||||||
|
"]/condition")
|
||||||
};
|
};
|
||||||
var perEngineSelectedAxisHandler = func(mode) {
|
var perEngineSelectedAxisHandler = func(mode) {
|
||||||
return _axisMode[mode];
|
return _axisMode[mode];
|
||||||
|
|
Loading…
Add table
Reference in a new issue