Board index FlightGear Support Hardware

Phi Map

Joysticks, pedals, monitors.

Re: Phi Map

Postby Hooray » Thu Feb 27, 2020 12:37 pm

https://sourceforge.net/p/flightgear/codetickets/2179/
slawekmikula wrote:
  • tiles.xml -> location OK, Where to document format ? (I would like to make it nice and clean with all needed information placed somewhere - FGDATA/Docs (?) but what file or new one ?
  • overlay layers - backend without any problem, I might have some help about nasal and dynamically create items in GUI (but i'll look at what already is done - maybe some hint where e.g. comboboxes or anything GUI related are populated dynamically in GUI from nasal ?)
  • API keys - OK, sounds good. Same question about documentation placement (/sim/keys would be a place for other such kind of data)


FWIW, someone mentioned elsewhere that we cannot easily have application specific API keys that all end users could share ? If that's right, the property tree mains the right place for those keys, but the storage would belong into $FG_HOME

In other words, if it seems likely that each fgfs client will require its own set of API keys, those should not be part of defaults.xml or even $FG_ROOT, but they would have to be made persistent via the userarchive attribute, and then loaded automatically from $FG_HOME

Also note that the PUI/combo box thing is relatively awkward to implement, you can much more easily create a canvas combo box by using a scroll area with buttons, that become editable when clicked:

http://wiki.flightgear.org/Canvas_Snipp ... ScrollArea
http://wiki.flightgear.org/Canvas_Snipp ... Layouts.29
http://wiki.flightgear.org/Canvas_Snipp ... put_Dialog

This is also how the scroll-able airport-list widget was implemented:

http://wiki.flightgear.org/Howto:Proces ... ist_widget
Image

In other words, you can simply create a function that traverses a well-defined location in the property tree to look for "api-keys" and then procedurally create the dialog, without having to hard-code any other assumptions (number/name of keys etc):

http://wiki.flightgear.org/Draw_masks
Image

That way, you would end up with roughly ~50-100 lines of code to procedurally create a wizard to edit/manage API keys as needed, while storing them $FG_HOME

Such a dialog could then also load a README file from $FG_ROOT/Docs or show corresponding tool tips as needed, much easier and much less work than dealing with PUI/XML.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Phi Map

Postby Robertfm » Thu Feb 27, 2020 12:52 pm

Thank you for the explanation. Then why does the FGMap function happily on all functions including scroll etc. Phi tabs, and nav airs open happily with touch.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: Phi Map

Postby Robertfm » Sat Mar 28, 2020 9:16 pm

You will know that the Phi Map follows the route set by the Route Manager however it actually has been deviating and not following the blue track line, it ends up in the right place but it has compromised the altitude of the assigned route on a number of occasions as it can drift off over 100nm. The HUD has the right track as does the Heading Bug which matches the various tracks of the RM. Why is it doing this.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: Phi Map

Postby Isaak » Sun Mar 29, 2020 5:17 am

I'm not into the topic, but I'm immediately thinking about the earths curvature. If your Phi map connects the Route Manager fixes with straight lines on your 2D map, these lines will actually not be straight on the earth's 3D sphere when the line has a horizontal component. This will be more prominent the closer you get to the north/sourh pole. On long legs close to one of the poles this can mean a deviation of several miles. In FlightGear, the Route Manager will follow the shortest route between two waypoints, which projects as a curved line on a 2D map.
Last edited by Johan G on Sun Mar 29, 2020 10:31 am, edited 1 time in total.
Reason: No need to quote the entire preceeding post
Want to support medical research with your pc? Start Folding at Home and join team FlightGear!
Isaak
 
Posts: 768
Joined: Sat Jun 04, 2011 3:52 pm
Location: Hamme, Belgium
Pronouns: he, him
Callsign: OO-ISA
Version: next
OS: Windows 10

Re: Phi Map

Postby Robertfm » Sun Mar 29, 2020 11:12 am

The point is it hasn't always done that. I mainly fly in the UK and France, Germany and rest of Western Europe. On long legs from Europe back to the UK it does show the track in a curve.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: Phi Map

Postby Robertfm » Tue Jun 21, 2022 11:45 am

To the Phi maintainer, is it possible to change the AI planes letter & numerals to yellow on a black back ground. It is difficult to read details as it is now. Thanks.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: Phi Map

Postby Robertfm » Thu Jan 26, 2023 7:12 pm

Is there an issue with the Phi. I flew a flight with no issues, then when loading a flight EGJJ to EGPE using a flight planner all the way points showed up but are not connected by the blue tracking line(Line not visible at all). On my alternate live map (Free Air Map) the track is there. On both maps the course is being followed.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Previous

Return to Hardware

Who is online

Users browsing this forum: No registered users and 8 guests