#XPDR Code shows zeroes while editing

1 messages · Page 1 of 1 (latest)

lapis sundial
#

Hey guys, I have a - I think well known - Problem with my XPDR Code setup with FenixA320. I see some posts in this discord regarding XPDR Code but cannot fix it.

I am building a TCAS-Panel for an Airbus A320.
The picture illustrates the problem: I am editing the Squawk with the CLR button, my device shows zeroes instead of blanks.

Mobiflight config for that datapoint is (PRESET-CODE):
(L:N_PED_XPDR_CHAR_DISPLAYED) 4 !=
if{ (L:N_FREQ_STANDBY_XPDR_SELECTED) }
els{ (L:N_FREQ_XPDR_SELECTED) }

Display is a normal TM1637-4digit display. Is working fine otherwise.

I guess, i have to add a few transform rules? if I clear all digits, Display shows "-100"

Can u help?

Regards
Peter

keen elbow
#

What value do you receive in Mobiflight while editing the XPNDR code?

lapis sundial
#

Hi Jaime Leon, value is looking good. 12 is correct. The Display shows 1200. BTW: to see the values I had to downgrade to Version 11.1 - Beta does not show the values

#

if I do a test and put "1" in, display shows 1000 - so the display adds padding-zeroes to the right

keen elbow
#

Please also post the modify tab

#

You must be using the padding modifier when not necessary

lapis sundial
#

Alright. That is trick #1. Thank you. I added this rule now (see image).
I hope to get rid of the -1 when the display is completely blank

#

in this case the display in the sim is completely blank (after clicking CLR twice)

#

Thanks again, jamieleon, for pointing me in the right direction. Problem is solved. For trick #2 another modify has been added.