Jason Fayre Posted January 28, 2020 Report Posted January 28, 2020 Hello,, In the speech add-on I'm developing, I want to be able to indicate what the elevator trim is set to. In looking at the offsets, I can't quite figure out which offset to use, and what unit to convert the output to. If it is measured in degrees, how do I get that value? The documentation is usually really good, but this one has me stuck.
Thomas Richter Posted January 29, 2020 Report Posted January 29, 2020 Hi, I think it is quite simple to select which Offset to use in relation what you want to do, reading from or writing to. FS doesn't return a conversation to degree or any other, just the min and max position as a value, see above. The conversion you have to do yourself as it is related to the aircraft settings in the aircraft.cfg of the aircraft that is used. You will find there those lines that define the values. Quote [flight_tuning] . . . elevator_trim_effectiveness = 1.0 [airplane_geometry] . . . elevator_trim_limit = 19.5 //Degrees But the .air file might have further definitions that might influence. Thomas
Jason Fayre Posted January 29, 2020 Author Report Posted January 29, 2020 Hi Thomas. Thanks. Unfortunately, I am totally blind,so images aren't going to help. Can you please indicate the offset I should use? Also, is the info from the cfg file obtainable through FSUIPC, or do I need to get that some other way?
aua668 Posted January 29, 2020 Report Posted January 29, 2020 Jason, Here in text form: Offset 0BC0 WORD Elevator trim control input: –16383 to +16383 Offset 0BC2 WORD Elevator trim indicator (follows input) Rgds Reinhard
Jason Fayre Posted January 29, 2020 Author Report Posted January 29, 2020 Thanks Reinhard! So if I'm understanding this, the only way for me to get a human readable value from the trim is to read the aircraft.cfg file? If the max trim in the aircraft.cfg file is 19.5 degrees, how to I convert the value that FSUIPC returns into a degree value? I really apreciate the help!
Jason Fayre Posted January 29, 2020 Author Report Posted January 29, 2020 Actually. I may have found something. Would the offset at 2EA0: Elevator Trim Deflection, give me what I need?
Thomas Richter Posted January 29, 2020 Report Posted January 29, 2020 Hi, I didn't that one but that will give you the actual Trim deflection in RAD, just convert to DEG (RAD * 180/PI = DEG). To know beforehand the max trim value you would still need to read it from the related aircraft.cfg file. Thomas
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now