MobiFlight Community Support

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! 

05/03/2024 - This forum is read-only

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.

icon
Avatar
hrings
Posts: 136
Hi.
I have tried to set up a 3 digit 7 segment to show the trim setting.
When testing all three digit and DP show correct.
As soon as I start the application it shuts down and in log it says "Error on config exec. Input string was not iin correct format.
I have used Pizmans setup in message 1791 for the transform: Round(($+5000)/1265),2)*100
What am I doing wrong
HenningR
2021-07-16 10:17
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Hi Henning,

if you write your formula like here it is wrong.

Round(($+5000)/1265),2)*100

You have two bracket open but you close 3, so the Round area is closed before the comma

Round(($+5000)/1265)

the ,2 is out of the Round area. So leave the bracket after 1265.
I use a similar formua: ($+5000)/12.65 - makes the same
Grüße,
Stephan (Time: UTC+2)
2021-07-16 11:24
Avatar
hrings
Posts: 136
Thanks Stephan
I have now tried both and it now says :"Problem with transfer an error occured on parsing value formula pls review and correct errors
Round(($+5000)/1,65)
and
($+5000)/12,65
I have used the same setup else as in message 1791
Offset 0BC0 int 2 BCD mode 0xFFFF
Red asterix with text: Error on config exec. Input string was not iin correct format
Do yo use point . or comma , in the formula I have tried both with the same result
MF says Flight simulator value 52 and output on display 3.99 but show on 7 seg. 3.33
HenningR
[Last edited by hrings, 2021-07-16 14:00]
2021-07-16 12:59
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconhrings:


I have now tried both and it now says :"Problem with transfer an error occured on parsing value formula pls review and correct errors
Round(($+5000)/1,65)
and
($+5000)/12,65



Decimal and Point Issue !!!!

A Decimal number (Float) is always written in a Syntax with a POINT ..... So 1,234 is WRONG ..... 1.234 is correct !

Simple rule:
POINT"." is used for Decimalnumbers like 1.23
DECIMAL "," is used for syntax functions like if(a,b,c)
Good Luck !
2021-07-28 16:27
icon