dabu Posted July 19, 2009 Report Share Posted July 19, 2009 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 More sharing options...
Pete Dowson Posted July 19, 2009 Report Share Posted July 19, 2009 Hi PeteI 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 More sharing options...
dabu Posted July 20, 2009 Author Report Share Posted July 20, 2009 Peter Thank you for answering so quickly. I am going to have a look at the Lua plug-in and try to figure out how it works. Let you know if I need additonal help. Daniel Link to comment Share on other sites More sharing options...
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