Jump to content
The simFlight Network Forums

Is it possible to change throttle axis mapping dependent on airspeed?


Recommended Posts

Hi all,

I'm running P3D v5. 

Can I get FSUIPC to map 100% real life throttle to only 70% P3D throttle from 0 to 80 knots (so this is the max of the range, 50% real life throttle would equal 35% in sim etc). At 220knots and above I would like 100% real life throttle to correspond to 100% P3D throttle (normal function). Between 80 knots and 220 knots I would like 100% real life throttle to correspond to a linear increase in P3D from 70% to 100% throttle.

I don't know much but thought this may require a simple lua script. Would be willing to possibly pay for its completion.

 

Cheers,

RAlpaca

Link to comment
Share on other sites

Should be reasonably straight-forward with a lua script. When you say 'a linear increase in P3D from 70% to 100% throttle' what sort of increase do you mean?  How long would you want this increase to take to get from 70% to 100%? Presumably a 1% increment delta over this period would be sufficiently 'linear', no?

I can take a look at this for you when I get time - maybe on Sunday if I get a chance...

John

Link to comment
Share on other sites

Hi John, thanks for the response.

Apologies, full power at 200 knots aircraft speed.

What I meant by a linear sense (not well explained by me) is that the shift from 70% power in sim to 100% in sim would occur at the same rate over the 120 knot gap as the aircraft accelerates between 80 knots and 200 knots. So the 30% power increase divided by 120 knots would mean for each knot the power would increase by 0.25%.

Hoping for the same response as the speed decreases. 

I imagine the lua script would use an equation but the values are tabulated below.

Airspeed    Max % Throttle sent to P3D (with hardware throttle at full)
75    70
76    70
77    70
78    70
79    70
80    70
81    70.25
82    70.5
83    70.75
84    71
85    71.25
86    71.5
87    71.75
88    72
89    72.25
90    72.5
91    72.75
92    73
93    73.25
94    73.5
95    73.75
96    74
97    74.25
98    74.5
99    74.75
100    75
101    75.25
102    75.5
103    75.75
104    76
105    76.25
106    76.5
107    76.75
108    77
109    77.25
110    77.5
111    77.75
112    78
113    78.25
114    78.5
115    78.75
116    79
117    79.25
118    79.5
119    79.75
120    80
121    80.25
122    80.5
123    80.75
124    81
125    81.25
126    81.5
127    81.75
128    82
129    82.25
130    82.5
131    82.75
132    83
133    83.25
134    83.5
135    83.75
136    84
137    84.25
138    84.5
139    84.75
140    85
141    85.25
142    85.5
143    85.75
144    86
145    86.25
146    86.5
147    86.75
148    87
149    87.25
150    87.5
151    87.75
152    88
153    88.25
154    88.5
155    88.75
156    89
157    89.25
158    89.5
159    89.75
160    90
161    90.25
162    90.5
163    90.75
164    91
165    91.25
166    91.5
167    91.75
168    92
169    92.25
170    92.5
171    92.75
172    93
173    93.25
174    93.5
175    93.75
176    94
177    94.25
178    94.5
179    94.75
180    95
181    95.25
182    95.5
183    95.75
184    96
185    96.25
186    96.5
187    96.75
188    97
189    97.25
190    97.5
191    97.75
192    98
193    98.25
194    98.5
195    98.75
196    99
197    99.25
198    99.5
199    99.75
200    100
201    100
202    100
203    100
204    100
205    100

Link to comment
Share on other sites

1 minute ago, RoundAlpaca said:

What I meant by a linear sense (not well explained by me) is that the shift from 70% power in sim to 100% in sim would occur at the same rate over the 120 knot gap as the aircraft accelerates between 80 knots and 200 knots. So the 30% power increase divided by 120 knots would mean for each knot the power would increase by 0.25%.

Hoping for the same response as the speed decreases. 

Ah, ok. I will take a look when time permits...

John

Link to comment
Share on other sites

Hi RAlpaca,

please try the attached lua script. To use, save it to your FSUIPC installation folder and then add it to auto-start either from your general [Auto] section or to your [Auto.xxx] (where xxx is a profile name) if you want to use it for a specific profile, e.g. for my 'Cessna' profile I would use

Quote

[Auto.Cessna]
1=Lua ThrottleControl
 

Then, in FSUIPC, delete any calibration you have set on the throttle (from the UI) - either in the general or profile specific calibration settings, whichever you are using for the aircraft. Then assign your throttle to 'Send to FSUIPC Offset' and give the offset value as 0xA000 (if you are using this offset already, change to use a new free user offset and update the throttleAxisOffset variable in the script to match). Then try the script to see how it works for you.

I suggest you initially try with the the logging console open (Log -> Open Console), and you can see what %age is being used and the values sent. I've commented the lua so you can change some values to suit your needs. Once you are happy, you can disable the logging in the script by setting the LogActive variable (in the script) to false.

Let me know how it goes.

John

ThrottleControl.lua

Link to comment
Share on other sites

Cheers John,

Will get time to test it out Monday (tomorrow) afternoon. Had a quick look at the code and looks like it should work well. Once I get it working I'll get in touch and send some compensation your way. 

Cheers,

RAlpaca

Edited by RoundAlpaca
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.