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
Birdovous
Posts: 2
First of all, I really love this new feature as it makes values so much more simple to display on the 7-segment displays!

So big thanks to all developers responsible for implementing this.

Now a question or perhaps possibly a "tiny" feature request:

I'm using Round function to take value from the sim, round it to set number of decimal places and then I display this rounded value on a 7-segment display.

This works flawlessly and even more so now, with the new firmware that takes care of placing the decimal dot where it belongs on the display.

However, when the Round function, or the simulator variable, happens to be an integer with no decimal places, it gets displayed as such on the display as well.

This leads me to a question if there is a way to have such number displayed with the decimal places as well?

For instance the altimeter setting 30.00 gets displayed simply as 30.

Is there a (preferably easy) way around that?

Thanks for any reaction.
2023-02-21 13:50
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

We know that behavior and looking for a solution.

Our intention is to do this with the new "modifier" tool. ( Already in Code but not in UI )

We plan for a "Padding Moddifier" where user can define for a Config (Not for the Display like now) that a value should be transformed into a "String".
There we plan to say e..g Result should be a Value with 6 Numbers and with a Decimal Point between Nu,mber 3 and 4 .... And it should be filled e.g. with Spaces to the Right and Zeros to the left.
In that example a value of 12,62 would be shown as _12,620
If we say Fill with Zeros to the LEft and Spaces to the right then it would be e.g. 012,62_

So please stay patient till i expect v10.0
I hope we find a good way to make this possible.

**********
Till then.... Go the "old way".
E.g. multiply the Value by 1000 in a Com Frequency ( Or read khz instead of Mhz unit type)
Then a Frequency of 123,000 is shown as 123000 .... Simply enable the decimal Point in Display settings like in the past.

Another way is a more advanced formula with Modulo and things like Then '$.000' Here e.g. 30 would be shown as 30.000
Also the Left Padding Zero can be used in some situations.


Summary: Go the provisional way until we have a final solution !
Good Luck !
2023-02-21 19:48
Avatar
Birdovous
Posts: 2
Thanks a lot for the response!

It is great to hear that the "easy" solution is in the making and thank you for suggesting a workaround :)
2023-02-22 15:32
icon