Jump to content
The simFlight Network Forums

Project Magenata offset 55F0 (Dimming display)


Recommended Posts

Hi Pete

I would like to use the function of offset 55F0 in PM-Software, which is used to dimm the displays (bit from 0 til 5). I was wondering If it is possible to assign this function via FSUPIC to an axis. But I am not sure how. First of all I am puzzled since the size of the offset is 6 - I assume this means 6 bytes which would be 48bits? So it is not a word or Dword offset.....double floats seems to be wrong as well...... The next question how would I have to handle the value which is 0 through 100 (100 bright display, 1 dark, 0 inop). with a poti the range wolud be from -16381 up to 16381 (or something like this I don't have the exact numbers in mind). See I am not a big programmer - I thought there might be a possibility to assign the function via the fsupic interface, but I am not sure..... Any solution?

Daniel

Link to comment
Share on other sites

Hi Pete

I would like to use the function of offset 55F0 in PM-Software, which is used to dimm the displays (bit from 0 til 5). I was wondering If it is possible to assign this function via FSUPIC to an axis. But I am not sure how.

Not easily. You could do it via Lua, using a Lua plug-in to take the axis input, scale it to the range accepted by PM, then write it to the correct offset.

First of all I am puzzled since the size of the offset is 6 - I assume this means 6 bytes which would be 48bits?

You need to read a little more. It is 6 separate bytes, one each for 6 separate displays. Each one is dimmable separately.

The next question how would I have to handle the value which is 0 through 100 (100 bright display, 1 dark, 0 inop). with a poti the range wolud be from -16381 up to 16381 (or something like this

You'd need to scale the value in a Lua program. If you want all 6 displays operating together you'd write all 6 bytes with the same value.

I haven't got time at this particular moment to go into more detail, but check the Lua examples provided in the FSUIPC ZIP package and get back to me with questions which I can answer later, when I've got a little more time.

Regards

Pete

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.