Jump to content
The simFlight Network Forums

Read engine reverse in LUA script

Recommended Posts

is there a way to understand if the engines reverse are engaged?

I have tried checking if the offsets 088C or 0B00 are equal -4096, but that does not seem to work.

Reverse is engaged when the throttle values are negative, not just -4096 which is the maximum reverse JOYSTICK input value. Different aircraft have different reverse thrust limits, defined in their Aircraft.CFG files, so it could be any negative number for full reverse -- and any negative number is some degree of reverse thrust.

088C is the current Engine 1 throttle setting. 0B00 only tells you what the maximum reverse value is for the current aircraft. It is a fixed value for that aircraft and will only be fixed at -4096 if that's the value defined in the Aircraft.CFG file. If all aircraft had -4096 as max reverse, by definition, then it would actually be a waste of an offset telling you that, would it not?

Be sure to treat the 16-bit WORD you are reading as signed, otherwise it will look like a very large positive number instead.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 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.