Jump to content
The simFlight Network Forums

THROTTLE1_AXIS_SET_EX1 - deadzone in FSUIPC


severniae

Recommended Posts

Hi,

For some aircraft, I have to use the setting THROTTLE1_AXIS_SET_EX1 to control the throttle. The problem appears to be that I can't set a dead zone at the start of the throttle.

I understand that I could do this using lua in fsuipc. I have some experience in Lua, I have written some basic scripts to help with automation in the cockpit etc...

But I'm not certain of what I should do to execute throttle operation in FSUIPC - nor how to limit the throttle's travel.

Would someone mind posting some example code that I may work on as a basis?

Thanks in advance,

James

Link to comment
Share on other sites

38 minutes ago, severniae said:

Would someone mind posting some example code that I may work on as a basis?

Assign your axis to a free FSUIPC offset (e.g.A000), and use the lua event.offset function to call your handling function when the offset/axis value changes.
Your handling function will receive the axis value - you can adjust that value as needed (i.e. calibrate) and then send on to the FS using ipc.control, using the control number for THROTTLE1_AXIS_SET_EX1 (which is 67103 - see the document Controls List for MSFS Build 999.txt) together with your calibrated value as the parameter. You should also auto-start the lua, using the [Auto.xxxx] (where xxxx is your profile name) section of your FSUIPC7.ini file.

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.