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

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.