#1602 KAP140

1 messages · Page 1 of 1 (latest)

hushed cipher
#

Hi Guys anyone have a chance to 1602 lcd for KAP 140 works with not issues? I connected mine. test works. but i can not configure for my msfs2020

dawn creek
#

If i understood correctly your problem is with output mapping of variables?

hushed cipher
#

Yes.. I can not make it works.. I can not figure it out dsplay "text"

dawn creek
#

C172 classic?

tight lark
#

Does Mobiflight get a value displayed in the Flight Sim Value column of the main outputs list view?

#

What variables are you intending to display in your 16x2 screen?

hushed cipher
hushed cipher
tight lark
#

In order to help you, you should explain what you wish to do in your screen specifically and please answer my questions.
What exactly are you having problems with? Without any clear information it is almost impossible to assist.
Don't assume someone has already done what you want to do. Every project is different.

tight lark
hushed cipher
#

Yes Jaime. This tutorial, for VHF1 & VHF2 works not issues but I asked for KAP140 ( are you familiar with this model? Is completely Blank as you see 1st pic.. and after you activate AP show me LETTERS ( ROL [ap] ALT ) here is were I am stuck... If I type those letter in display/text, always will be on, not when i I activate from plane..

tight lark
#

Anyone trying to help you develop your project needs to know what is it that you want to do with the display because it requires compromises.

#

This line has 16 characters ROL(ap)ALT##,###

#

And you would still be missing the up down arrow between ALT and the Alt setting

#

I don't want to guess what you want to do

#

Although Mobiflight is kind of crude in handling strings, it is possible to set values to strings like
If($=1,'ROL','HDG')

#

The second line is even more crowded

hushed cipher
#

I understand.. thanks for your response, I thought that will show same has original when I press AP I saw it in in other video that I can not find now. is a replica ussing 1602 lcd with MF, but maybe more complicated that I thought.

tight lark
#

Yes, it is possible to do some stuff with a 1602 lcd

#

But you need to define how to distribute the 16 characters

dawn creek
#

You can use a special caracter (es: *) to replace AP indication (it just tells you that the autopilot is on or off) and you can save 3 characters.
Then, you know that you need 3 characaters to display lateral navigation mode: NAV or HDG or ROL
You need 3 characters to display ALT or VS mode
You need 5 charachters to display altitude.

ROL ALT ##.###

is a 16 character string (double space betweeb ROL and ALT)

on the second row you can set the indication for autopilot on or off and the alert message and the ft indication

hushed cipher
#

Ill try to find the video today thanks Danile

dawn creek
#

if you need some help feel free to ask me (better here so it can be useful to others too) as i'm building panels for C172 and Autopilot will be the next one. i'm planning to do a custom pcb of it and not using a 16x2 lcd but the Mobiflight will be almost the same

hushed cipher
#

Great, thanks a lot.. i finished all gauges for MF except ADF and VOR ( can't find proper model still).. but now stuck in KAP140, need to figure it out how program it, to show letters instead numbers.. , iam newby and learning.. but thanks again..

frank raft
# hushed cipher Great, thanks a lot.. i finished all gauges for MF except ADF and VOR ( can't ...

Lets take my Transponder on a 20x4 display as a sample.
I introduced an output with the name xpndrMode like that. The mode will be a number in the range of 0 to 4 with:
0 = Off
1 = Standby
2 = Test
3 = On
4 = Alt

To convert this to a string we had over to the Compare tab and enter this into the Comparison Settings:
If current value is >= 0
set it to if($=0,'OFF',if($=1,'SBY',if($=2,'TST',if($=3,'ON ','ALT'))))
else (left blank)
Don't forget to set the check in from of the Comparison settings.

To output Text, you have to use the single ticks: '

#

To the formula: The $ is replaced by the gathered value, in my case the transponder mode. You have to replace it by the AP mode.
The transponder has 5 states, the AP might have less. You have to shorten the nested if(...)

burnt wasp
#

yeah, the thing being, there is no "simulator data" that shows the whole KAP140 screen contents as far as I know, there are simulator variables that are Boolean (ON or OFF, or 1 and 0) for given modes of the simulated autopilot. So the KAP140 "gauge" uses these things to drive the Cessna in the sim, and the has its own way to display those on its own virtual "screen" on the 3d cockpit.

hushed cipher
#

Guau.. this is exactly what I was looking at.!.. soon get home Ill.play a littlenand see of works

frank raft
#

As @burnt wasp mentioned it might be that the correct display has to be calculated from multiple conditions. Just tell me if this is the case. There are solutions for this to include multiple inputs into the Comparison Settings.

burnt wasp
#

you likely need to encode your autopilot modes with a numbering scheme

#

("if NAV mode is active, set MF variable "ap mode" to "2", if roll mode, set it to 1, if disengaged, set it to 0

#

etc

#

and then in Compare you can do that conversion to text like @frank raft said above in the transponder example

#

and bring your "ap mode" variable into the display config as config reference

#

and you might need to use preconditions to set it from a bunch of autopilot mode ON/OFF variables