A couple of Map questions

Support for Air Player on the Raspberry Pi.

Moderators: Ralph, russ

Post Reply
Message
Author
Neptuni
Posts: 13
Joined: Fri Dec 25, 2020 2:25 pm

A couple of Map questions

#1 Post by Neptuni » Mon Jan 25, 2021 8:48 pm

Hi,

I’m using the map and nav map overlays, is there a way to round the frequncy on the txt layer so it doesnt show 300.000000 for the frequency (but instead 300.00)?

Next question, the aircraft symbol is not at the correct position, when I’m for instance is on the end of a runway, they symbol is bellow and slightly to the right. Im using a 1280x995 (0,0,1280,995)pixel map and I have positioned the symbol at 640, 498

Best regards,

Mikael

User avatar
Keith Baxter
Posts: 2809
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: A couple of Map questions

#2 Post by Keith Baxter » Mon Jan 25, 2021 9:57 pm

Neptuni wrote:
Mon Jan 25, 2021 8:48 pm
Hi,

I’m using the map and nav map overlays, is there a way to round the frequncy on the txt layer so it doesnt show 300.000000 for the frequency (but instead 300.00)?

Next question, the aircraft symbol is not at the correct position, when I’m for instance is on the end of a runway, they symbol is bellow and slightly to the right. Im using a 1280x995 (0,0,1280,995)pixel map and I have positioned the symbol at 640, 498

Best regards,

Mikael
Hi Mikael

Use string format to format the frequency. <string.format("%.0f",300.00000)> the 0f = no decimal places. 2f = two decimal places

The "image" will be positioned to the top left corner. So if the image size is 60x60 then position it 610,468.
Note: take into account the magvar and rotate the image accordingly else it will "crab"


Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

Neptuni
Posts: 13
Joined: Fri Dec 25, 2020 2:25 pm

Re: A couple of Map questions

#3 Post by Neptuni » Mon Jan 25, 2021 11:03 pm

Thanks for the reply!

I know how to format numbers, but where do I apply it?
I just added the nav_img and nav_txt layer and set ”FREQENCY” as a parameter for the text layer.

I noticed also that I had to subtract half of image size as you said, so now Im closer (not perfect yet thou). Thanks for the advice to incorperate the magvar, the orientation will be better (a few deegres of now)

/Mikael

User avatar
Ralph
Posts: 5097
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: A couple of Map questions

#4 Post by Ralph » Tue Jan 26, 2021 1:52 pm

I'm not sure what you mean with applying. Did you check out this example in our wiki?
http://siminnovations.com/wiki/index.ph ... formatting

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest