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.

Go to page 1Go to page 112Go to page 3Go to page 2
Avatar
maranga74
Posts: 14
Hello to all,
I would like to know how to change this offset from seconds to minutes 0x0304 VOR1 DME time to station, 16-bit integer, secs * 10

Bye-Bye!:-/ :-/ :-/ :-/
2017-10-23 23:11
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

PLEASE Do not use old topics with complete different thematic for your requests !!!
Simply open a new topic if you got a question like this !

Solution.....

I not work with that offset but logic looks easy....

iconmaranga74:

Hello to all,
0x0304 VOR1 DME time to station, 16-bit integer, secs * 10



This means a Value of 600 for example means 600/10=60..... So This is 60 Seconds.

To get Minutes you need to divide thorugh 600...... Problem.... Then you got a Decimal From a Full Minute...... For Example 75 Seconds are 1 Min and 15 Seconds.... But Decimal it will show 1,25 Minutes.

To Get a Minute and Second Display i think you have to work with MODULO "%"

First You need a Config for Minutes.... Use Transform $/600 to get Minutes..... A Result like 8,25 will be shown on Display only like "8" cause Mobiflight not see decimal numbers
Second Config needs a Modulo like ($%600)/10 ( Not shure if this Work..... I Not try Out)
Target here is to divide the Value Thorugh 600 and only show the "Rest" that is smaller then 600..... Result This are the Seconds !
Good Luck !
2017-10-24 00:11
Go to page 1Go to page 112Go to page 3Go to page 2