yair1956, on 03 July 2012 - 07:44 AM, said:
I would like to build Xponder that will emulate the Garmin GX320 (or any other Analog Xponder)
is there away to configure the buttons & the knob through FSUIPC
Off, SBY, On, Alt, Test, positions
- 9 Buttons for the numbers
- 1 Button for the IDENT
- 1 Button for the VFR Reset
Do you have a gauge which has all this? Or are you building hardware for this? Because FS itself only has the 4 numbers you can change. No other transponder functions at all.
How do you select which of the 4 you are setting? Is it one of those which simply cycles left to right or right to left? Whatever way that works you could certainly easily program that in a small Lua plug-in which puts together the transponder value as you press the numbers and writes the resulting value back to the FS offset for transponder code (a 16 bit value holding the code in Binary-Coded decimal form -- i.e. 0x1234 for code 1234). You can't do it very easily using standard FS controls as they inc/dec each digit -- 8 separate controls. It can be done with those but it would be a real mess.
The VFR reset button could be a simple assignment to an FSUIPC Offset Word Set control to the 2-byte transponder offset of 0x1200. (The offset is 0x0354).