Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.
You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks!
The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!
See you on our MobiFlight Community Discord server.
A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.
The forum is still providing a lot of good content, hence we keep this information accessible.


My first attempt at COM / NAV panels was with combined displays:
COM1STBY1 display 1 digits ------ XX transformation ($ + 10000) / 1000
COM1STBY2 display2 digits X, XX ----- transformation $% 1000
NAV1ACT1 display 2 digits ----- XXX, transformation ($ + 10000) / 100
NAV1ACT2 display 3 digits XX ------ transformation $% 100.
It worked perfectly. Let's see if it can help ...
regards

My first attempt at COM / NAV panels was with combined displays:
COM1STBY1 display 1 digits ------ XX transformation ($ + 10000) / 1000
COM1STBY2 display2 digits X, XX ----- transformation $% 1000
NAV1ACT1 display 2 digits ----- XXX, transformation ($ + 10000) / 100
NAV1ACT2 display 3 digits XX ------ transformation $% 100.
It worked perfectly. Let's see if it can help ...
regards
My first attempt at COM / NAV panels was with combined displays:
COM1STBY1 display 1 digits ------ XX transformation ($ + 10000) / 1000
COM1STBY2 display2 digits X, XX ----- transformation $% 1000
NAV1ACT1 display 2 digits ----- XXX, transformation ($ + 10000) / 100
NAV1ACT2 display 3 digits XX ------ transformation $% 100.
It worked perfectly. Let's see if it can help ...
regards
WOW !!!
I´m sorry i not think ablut %Modulo% until now....
YES.... THAT can be the solution for that problem !
For the first part.....
Here we get lucky that in Mobiflight a Display NOT will show decimal Values.... For example a Value like 12345 / 1000 result in 12,345 BUT Mobiflight/Display will only see 12 and ignore the decimal ,345.
Additional we are lucky that Sebastian never implement the "AUTO ROUNDING" function in Mobiflight.
In the past he plan for it... Then for example a Value like 12789 divide through 1000 will result in 12,789 and Mobiflight then had see it as 13 (roundet) .
So summary YES !!! Thats a good idea for our current technical situation!
((And with a correct LEFT PADDING Logic we can also protect issues for the wrong position of Number problem !! ))
For the second Part......
Here MODULO% looks like the perfect solution ( again sorry i not think about)
Thank you for that Input.... I will use it in the future !
****
But last word....
Whatever this is now possible.... I Already recommend to use Single Displays instead of this trash 8 Diggit hardfixed 2x4 Blocks ..... And i already recommend to work with more Maxtubes if possible.... Complete Logic is much more easy and tidy (wire system and Device Names for example) when you work with policy.... "ONE Display for ONE Function with ONE MaxChip" .... BUT Thats only my personal opinion !
Another thing: Is there any way to pass an EventId as a parameter in calculations?



Code:
COM RADIO FRACT DEC CARRY 66434 COM RADIO FRACT DEC 65638 COM RADIO FRACT INC CARRY 66435 COM RADIO FRACT INC 65639
