#Replacing heading number with dashes and managed dot on 1602 or 2004 with i2c displays

1 messages · Page 1 of 1 (latest)

ancient river
#

Hello! I am trying to build a low cost Airbus MCP and I plan to use an i2c 2004 display for all the numbers. I am struggling with the following context: I want to replace the heading number with the dashed when switching from selected to managed mode. I am bringing the selected value from the MCP and the dashes with FenixQuartz and the managed dot with the pre-delivered WASM preset.

I cannot seem to find a way to alternatively display either the heading or the dashes.

In the first two comments is how the display behaves currently when in managed and selected mode.

I tried transforming the values with spaces or padding, but I didn't find a working combination.

I suspect what I wish to achieve is not technically possible, but I a newbie with Mobiflight and definitely need some extra ideas.

#

In Managed Mode.

#

In selected mode.

ember dirge
#

Like this?

#

Ah, wrong photo...

#

I checked the sim variable for managed mode and used it as a precondition for the mode display - that works for managed/manual but also for SPD/Mach, HDG/TRK etc as well.

#

Similarly, if you build the EFIS you'll find you have to do the same there to be able to sensibly display inHg, hPa and 'Std' as necessary.

ancient river
#

Well, my panel won't resemble yours and the original ones that much, but something like that at least in terms of displays. Would you mind sharing the configuration files? I'm not sure I follow your explanation.

ember dirge
#

Of course, that's fine.

mystic linden
# ancient river In Managed Mode.

if I understand your pictures, you still want to display the heading to the right of the dashes in managed mode?
Also, you might want to consider that the dashes and dot do not always go together, as the display will change to heading display while the dot is still on in managed mode, when you move the heading knob.

ancient river
mystic linden
#

there are two ways to do this: the traditional way with preconditions

#

newer way with Transforms

#

I prefer the newer way with Transforms and/or Comparison

#

You will need outputs created for the Heading Mode indication variable

#

And of course, the Autopilot heading setting variable

mystic linden
#

assuming heading dashes is # and heading set value is $ (the current output config value)

if(#=0, $, '---')

#

So you have a display format like

HDG:     $$$ %

#

Where $$$ is the field to display the heading value or dashes and the % is to display the dot

#

you can use the padding modifier with 0 character, width of 3 and direction left to ensure the heading value is displayed with leading zeroes.

ancient river
#

@mystic linden, thank you for all the details! I tried like you suggested, the padding works, however the transform returns an error 😕

mystic linden
#

yes, put the padding first

#

one variable is the indication of dashes, not the dashes themselves

#

what is LCD HDG --- #

ancient river
#

Got it to work, I also had a transform on the dash output variable, and that's where the config was conflicting

ancient river
mystic linden
#

OK

ancient river
#

thank you once again for helping! 🍻