#1602 KAP140
1 messages · Page 1 of 1 (latest)
If i understood correctly your problem is with output mapping of variables?
Yes.. I can not make it works.. I can not figure it out dsplay "text"
C172 classic?
Does the 16x2 display show "Mobiflight Rocks" when you start up?
Please show the output config you created : Sim variable, and Display tabs.
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?
Yes Daniele
Yes Jaime. my issue is how create my Display tabs. for this particular case.\
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.
Using an Arduino mega and Mobiflight software to connect and display data on an LCD display including the 737 large character LCD for the IRS display from MSFS2020 using FSUIPC & PROSIM.
FROM EVERYONE, including Mobiflight Sebastian):
If your Arduino becomes stuck/bricked etc. All you need to do is download the Arduino sketch called EPROM CLEAR...
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..
My point is that you don't have the exact display as the original, so some adaptation is necessary in order to more or less mimic the KAP140 in a 16x02 lcd screen.
You have to define what you want to do with this adaptation. For example using [ap] as you showed will consume 4 characters on an already narrow 16 character field.
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
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.
Yes, it is possible to do some stuff with a 1602 lcd
But you need to define how to distribute the 16 characters
got it
they probably used a 20x4 lcd display, which has more room. but you can just draw on paper a 16x2 slot and fill with informations you need. For Example:
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
Ill try to find the video today thanks Danile
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
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..
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(...)
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.
Guau.. this is exactly what I was looking at.!.. soon get home Ill.play a littlenand see of works
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.
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