Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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.

 

 

Posted

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.

image.thumb.png.6cb485df6310249caaf39c8efa8fb7a4.png

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

Posted

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?

Posted

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

 

Posted

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!

 

 

Posted

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

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.