XPNDR - alesskerbinek/FlightSimPanel GitHub Wiki
General
The purpose of this unit is to simulate transponders like:
Features
No | Type | Item | Function |
---|---|---|---|
1x | input | Rotary Encoder with push button | Squawk select |
6x | input | Pushbuttons | OFF, SBY, ON, ALT, IDENT, VFR |
1x | output | 4 Digit 7-segment display | Active Squawk |
1x | output | 3 Digit 7-segment display | Current mode |
Functional description
Left (3 Digit) 7-segment display shows current mode. Right (4 Digit) 7-segment display shows selected squawk.
Rotary knob changes squawk digit by digit. Pressing the rotary knob selects digit to edit.
SBY, ON, ALT buttons select corresponding mode.
OFF button only shows "OFF" characters on left display for the time the button is pressed. Is button is pressed long enough to detect long press, the unit turns off.
IDT button sends ident command to simulator. Characters "IDT" blink on left display for the time ident is being active.
VFR button sets squawk 2000. This can be configurable via configuration protocol in later versions.
IDEA: Instead of a rotary encoder we could add 10 numeric buttons, but that would require additional PCB.
Used DataRefs and Commands
Unit | Type | Direction | String | Function |
---|---|---|---|---|
XPNDR | Command | Write | sim/transponder/transponder_thousands_up | Increase first digit |
XPNDR | Command | Write | sim/transponder/transponder_thousands_down | Decrease first digit |
XPNDR | Command | Write | sim/transponder/transponder_hundreds_up | Increase second digit |
XPNDR | Command | Write | sim/transponder/transponder_hundreds_down | Decrease second digit |
XPNDR | Command | Write | sim/transponder/transponder_tens_up | Increase third digit |
XPNDR | Command | Write | sim/transponder/transponder_tens_down | Decrease third digit |
XPNDR | Command | Write | sim/transponder/transponder_ones_up | Increase fourth digit |
XPNDR | Command | Write | sim/transponder/transponder_ones_down | Decrease fourth digit |
XPNDR | Command | Write | sim/transponder/transponder_ident | Ident |
XPNDR | Command | Write | sim/transponder/transponder_off | Turn off |
XPNDR | Command | Write | sim/transponder/transponder_standby | Standby mode |
XPNDR | Command | Write | sim/transponder/transponder_on | On - A mode |
XPNDR | Command | Write | sim/transponder/transponder_alt | Alt - C mode |
XPNDR | Data | Read | 104 | Squawk, Mode and Ident status |
XPNDR | DataRef | Write | sim/cockpit/radios/transponder_code | Set VFR code |