Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete

My name is Danie and I am doing development work at Aviamech ( Epic agent in Africa ).

I am reading additional off-set FS2002 values and putting them into p-holes. ( FSUIPC_READ_N )

These new PH values do not have predefined names like the one’s in your list ( PH 1 to 152 )

How do I apply scaling to them ? What must I use as the “variable name” ?

Thanks for all your great work to date.

Kind regards

Danie Kuys

Posted

How do I apply scaling to them ? What must I use as the “variable name” ?

The scaling facilities only apply to the FS Token Variables, because they have to be converted in any case -- FS supplies them as 8-byte floating point values, and just taking the integer part or whatever is generally useless.

When you access FSUIPC data directly, you are mostly on your own. You are generally reading 1, 2, 3, or 4 bytes of raw data, which could mean or represent anything. They are not even necessarily numeric. You have to do whatever manipulation you want in your EPL code.

The exception to this is, of course, when you specify "F" or "D" types, for the 4- and 8-byte floating point values. Since EPL cannot handle floating point, EPICINFO does it for you -- there you can provide a multiplier, as documented, so enabling you to avoid losing fractions. That's as much scaling as you get from EPICINFO.

Regards,

Pete

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.