Modified Files:
Input/Joysticks/ThrustMaster/Top-Gun-Afterburner.xml Just update that to the current version.
This commit is contained in:
parent
aabab43f47
commit
0025aa8ce6
1 changed files with 24 additions and 14 deletions
|
@ -155,11 +155,11 @@ ________________________________________________________________________________
|
||||||
We have a throttle with two raster positions.
|
We have a throttle with two raster positions.
|
||||||
|
|
||||||
The areas are:
|
The areas are:
|
||||||
1 - 0.87: idle
|
1 - 0.99: idle
|
||||||
0.87 - 0.79: idle deadband
|
0.99 - 0.9: idle deadband
|
||||||
0.79 - -0.55: normal thrust
|
0.9 - -0.55: normal thrust
|
||||||
-0.55 - -0.73: afterburner deadband
|
-0.55 - -0.9: afterburner deadband
|
||||||
-0.73 - -1: afterburner
|
-0.9 - -1: afterburner
|
||||||
-->
|
-->
|
||||||
<desc>Throttle</desc>
|
<desc>Throttle</desc>
|
||||||
<number>
|
<number>
|
||||||
|
@ -175,28 +175,38 @@ ________________________________________________________________________________
|
||||||
if (1==1) {
|
if (1==1) {
|
||||||
val = cmdarg().getNode("setting").getValue();
|
val = cmdarg().getNode("setting").getValue();
|
||||||
abend = -1;
|
abend = -1;
|
||||||
abstart = -0.73;
|
abstart = -0.9;
|
||||||
milend = -0.55;
|
milend = -0.55;
|
||||||
milstart = 0.79;
|
milstart = 0.9;
|
||||||
if (val < abstart) {
|
if (val < abstart) {
|
||||||
# afterburner
|
# afterburner
|
||||||
a = 0.03/(abend-abstart);
|
a = 0.03/(abend-abstart);
|
||||||
b = 1-a*abend;
|
b = 1-a*abend;
|
||||||
props.setAll("/controls/engines/engine", "augumentation", "true");
|
props.setAll("/controls/engines/engine", "augmentation", "true");
|
||||||
props.setAll("/controls/engines/engine", "throttle", a*val+b);
|
props.setAll("/controls/engines/engine", "throttle", a*val+b);
|
||||||
} else {
|
} else {
|
||||||
# no afterburner
|
# no afterburner
|
||||||
props.setAll("/controls/engines/engine", "augumentation", "false");
|
props.setAll("/controls/engines/engine", "augmentation", "false");
|
||||||
if (val < -0.55) {
|
if (val < milend) {
|
||||||
# afterburner deadband
|
# afterburner deadband
|
||||||
props.setAll("/controls/engines/engine", "throttle", 0.9699999999);
|
props.setAll("/controls/engines/engine", "throttle", 0.9699999999);
|
||||||
} else {
|
} else {
|
||||||
if (val < 0.79) {
|
if (val < milstart) {
|
||||||
a = 0.96999999999/(milend-milstart);
|
a = 0.96999999999/(milend-milstart);
|
||||||
b = -a*milstart;
|
b = -a*milstart;
|
||||||
props.setAll("/controls/engines/engine", "throttle", a*val+b);
|
props.setAll("/controls/engines/engine", "throttle", a*val+b);
|
||||||
|
#props.setAll("/controls/engines/engine", "cutoff", 0);
|
||||||
|
#props.setAll("/controls/engines/engine", "starter", 0);
|
||||||
|
} else {
|
||||||
|
if (val < 0.99) {
|
||||||
|
props.setAll("/controls/engines/engine", "throttle", 0.4);
|
||||||
|
#props.setAll("/controls/engines/engine", "cutoff", 0);
|
||||||
|
#props.setAll("/controls/engines/engine", "starter", 1);
|
||||||
} else {
|
} else {
|
||||||
props.setAll("/controls/engines/engine", "throttle", 0);
|
props.setAll("/controls/engines/engine", "throttle", 0);
|
||||||
|
#props.setAll("/controls/engines/engine", "cutoff", 1);
|
||||||
|
#props.setAll("/controls/engines/engine", "starter", 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -503,7 +513,7 @@ ________________________________________________________________________________
|
||||||
<axis n="5"><!-- View Direction Hat -->
|
<axis n="5"><!-- View Direction Hat -->
|
||||||
<desc>View direction; mixture; aileron trim; rudder trim</desc>
|
<desc>View direction; mixture; aileron trim; rudder trim</desc>
|
||||||
<number>
|
<number>
|
||||||
<unix>5</unix>
|
<unix>4</unix>
|
||||||
<mac>5</mac>
|
<mac>5</mac>
|
||||||
<windows>6</windows>
|
<windows>6</windows>
|
||||||
</number>
|
</number>
|
||||||
|
@ -571,7 +581,7 @@ ________________________________________________________________________________
|
||||||
<axis>
|
<axis>
|
||||||
<desc>View direction; prop pitch; elevator trim</desc>
|
<desc>View direction; prop pitch; elevator trim</desc>
|
||||||
<number>
|
<number>
|
||||||
<unix>6</unix>
|
<unix>5</unix>
|
||||||
<mac>6</mac>
|
<mac>6</mac>
|
||||||
<windows>7</windows>
|
<windows>7</windows>
|
||||||
</number>
|
</number>
|
||||||
|
|
Loading…
Add table
Reference in a new issue