Hi Pete, thanks a lot for the reply. apologies for my delayed response.
Mobiflight is the software, that i am using to build my home MCP,
Sim software - Quality Wings 757 - They dont have a published SDK to check what offsets and event IDs have been used. and being a 757 there are very few pilots who want a build a home sim for the variant, however i did find one pilot and he had the same issues with the 7-segment mcp altitude.
I am unable to use the standard offset - 0x07D4 for the Altitude display, as when i rotate the encoder, the altitude changes in the Sim software, but on the 7-segment display it works initially but after a while it tends to not keep up. the encoder is using the event ID and works fine, i have tried different encoder and different pins on the arduino but the same issue persists. All the wiring / power lines and grounding have been double checked
I was advised to read the local L:Var by accessing the Guage value - assign this to a free offset in FSUIPC and then use that free offset in Mobiflight software to display the MCP altitude on the 7-Segment. I know accessing the guage value is slow, but as long as i can have a operational MCP altitude display its acceptable. If i have got the process wrong please do advise me, as i am going only by google searches.
The L:var is - L:alt_sel_num
Free Offset i used in the code - 66C0
Using this i came up with the code by replacing the values -
" Anyway, the normal way of dealing with these things, and one which i've used in several case of encoder+display going back many years, is to update the display locally, directly from the encoder changes, whilst also feeding the latter to the sim, only reading values to display when the encoder changes have paused for a measurable time, like half a second or so. "
In case you can advise me on how to achieve the above, i shall try updating the display locally if possible.
Hope to get this working sooner,
AJ
"