FG1000: Difference between revisions

4,743 bytes removed ,  24 November 2017
Update current status.
m (→‎November 2017: https://forum.flightgear.org/viewtopic.php?f=71&t=32764&p=322826#p322762)
(Update current status.)
Line 1: Line 1:
[[File:Fg1000 mfd.jpg|thumb|PUI-canvas FG1000 early prototype using PUI dialog to speed up development]]
[[File:Fg1000 mfd.jpg|thumb|PUI-canvas FG1000 early prototype using PUI dialog to speed up development]]


== Status ==
== Current Status ==


Most of the underlying MapStructure layers are now written (though they require styling, and/or would benefit from replacement with vector data)Stuart has started working on the initial architecture using the MFD framework, using an initial PUI-based prototype to speed up development.  This has the great benefit of allowing all the code to be re-loaded every time the dialog loads, rather than requiring a re-init of the aircraft.  It also helps ensure the architecture isn't dependent on a particular model.
An initial implementation of the MFD with two pages (Navigation Map and Traffic Map) is available on git/next from the Debug Menu->FG1000It includes a PUI-based surround, Engine Information System (early prototype), page group selection using the FMS control, and the two pages.


{{Main article|Canvas_News#G1000_.26_MapStructure_improvements}}
Most of the underlying MapStructure layers are now written (though they require styling, and/or would benefit from replacement with vector data).  
Stuart wants to build a set of layers for a G1000-like implementation - the canvas map UI is really just a way to display it. <ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/36059733/
  |title  =  <nowiki> Re: [Flightgear-devel] Canvas MapLayer for OpenStreetMap, OpenAIP,
VFR Sectionals </nowiki>
  |author =  <nowiki> Stuart Buchanan </nowiki>
  |date  =  Oct 1st, 2017
  |added  =  Oct 1st, 2017
  |script_version = 0.40
  }}</ref>


 
Next steps:
See [[#Layers]]
- Writing the remaining (large) number of pages
 
- Styling the pages - making the iconography match Garmin exactly.
=== November 2017 ===
Here is a little update o the G1000 emulation. Stuart has now got the key [[MapStructure]] layers in place, though they are not styled correctly for the '''G1000''' yet and Stuart would like to replace some of them (airspace in particular) with vector data, and started on the MFD architecture. For prototyping he hacked together a [[PUI]] dialog box, which speeds up development massively as it reloads all the Nasal code each time it's opened.
 
There's a screenshot of it here: [[File:Fg1000_mfd.jpg]]
 
There's also a wiki page of the current status here: http://wiki.flightgear.org/FG1000 Next steps are to get the MFD architecture in place - this will probably require some changes to Richard's generic [[Canvas MFD Framework|MFD]] to support buttons that don't change the MFD pages better. Stuart has not yet pushed this to fgdata - he'll wait until he's happy with the overall architectures so that there is a solid base for anyone else interested in helping out.<ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/36103513/
  |title  =  <nowiki> [Flightgear-devel] FG1000 update </nowiki>
  |author =  <nowiki> Stuart Buchanan </nowiki>
  |date  =  Nov 4th, 2017
  |added  =  Nov 4th, 2017
  |script_version = 0.40
  }}</ref>
 
Richard kindly added the Emesary support so that Stuart could use it for the FG1000 to help get the architecture right. For the moment he's got the GUI calling Emesary directly, but there's no reason why he can't change that to fgcommands in the future. Stuart thinks he wants to get slightly further in my work before he'll do that though - i.e. he wants to have some confidence that he is creating the right granularity of commands first.
 
Stuart is hoping to have a first version of the FG1000 MFD using a PUI surround and with two example pages (Navigation Map and the Traffic Map), the EIS and page navigation complete in mid December 2017. He is hoping that once he's got that done he'll have created enough of a framework that the rest of the MFD pages can be created relatively easily without some massive re-factoring effort <ref>https://forum.flightgear.org/viewtopic.php?f=71&t=32764&p=322826#p322762</ref>.
 
=== October 2017 ===
[[File:MapStructure-GRID-layer.png|thumb|Screenshot showing Stuart's new MapStructure GRID layer <ref>https://sourceforge.net/p/flightgear/fgdata/ci/4bd57492f454a05f725e6fe5a80dc246cb5e5e0f/</ref>]]
 
Stuart committed some changes to update the Select Airport dialog to use Canvas MapStructure Layers to display airport information, rather than the now deprecated map layers. The change should be largely transparent to end users - the only significant change is that your can display navigation symbols. This is all part of a long-term effort to provide the building blocks for a Garmin G1000 - these layers could be used for the airport display on the MFD, and could easily be combined with the APS layer to show a moving aircraft.<ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/36075357/
  |title  =  <nowiki> [Flightgear-devel] Updated Select Airport dialog </nowiki>
  |author =  <nowiki> Stuart Buchanan </nowiki>
  |date  =  Oct 13th, 2017
  |added  =  Oct 13th, 2017
  |script_version = 0.40
  }}</ref>
 
Stuart also implemented a GRID layer for rendering a lat/lon grid <ref>https://sourceforge.net/p/flightgear/fgdata/ci/4bd57492f454a05f725e6fe5a80dc246cb5e5e0f/</ref>.
 
=== September 2017 ===
Stuart added some new Nasal Canvas MapLayers to support Slippy Maps, as used by most web-based mapping services such as openstreetmap. This allows us to display sectional charts (for the US - vfrmap.com), and airspace information (courtesy of openaip.org), as well as a openstreetmap data. The canvas Map dialog has been updated to support these layers. Map data is retrieved over http and cached locally.<ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/36056088/
  |title  =  <nowiki> [Flightgear-devel] Canvas MapLayer for OpenStreetMap, OpenAIP,
VFR Sectionals </nowiki>
  |author =  <nowiki> Stuart Buchanan </nowiki>
  |date  =  Sep 28th, 2017
  |added  =  Sep 28th, 2017
  |script_version = 0.40
  }}</ref>


== Motivation ==
== Motivation ==