Phi

From FlightGear wiki
Revision as of 10:32, 9 March 2015 by Hooray (talk | contribs) (Created page with " {{DeQuote}} == Background == {{FGCquote |It runs on any device that has a web browser. So yes, if your FlightGear <br/> computer can run Firefox, Opera or alike you can ru...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Note  In its current form, this section/article is largely based on quotes collected from various related discussions/channels (devel list, forum etc) using the Instant-Cquotes script. Wiki users and other contributors are encouraged to help rewrite/edit contents accordingly to help get rid of unnecessary quoting (i.e. while the wiki is not intended to be a collection of quotes, quotes are sometimes the best/easiest way to bootstrap new articles, while also providing a good way to link back to related discussions in the archives).

While rewriting usually only entails changing first person speech to 3rd person. However, please try to retain references/links to the original discussion whenever possible.

Background

Cquote1.png It runs on any device that has a web browser. So yes, if your FlightGear

computer can run Firefox, Opera or alike you can run it on the same
computer, too.
It is not related to the "classical" way of rendering instruments within
flightgear, so everything in this area works as before.

Probably a video is more descriptive, here is a shot of an earlier
(incomplete) version:
http://youtu.be/sYM7uiWIprc
You can see a FlightGear instance on the top right of the big monitor
and Firefox on the left showing the EFIS. Both run on the same computer.
Below the monitor are an old iPod touch (left) and a Nexus 7 (right),
both running the EFIS as a web-app in full screen mode connected over WLAN.
The EFIS in the FlightGear window is based on Canvas/Nasal. The other
EFISes are 100% Nasal free, just HTML/SVG/CSS/JavaScript


— Torsten Dreyer (2014-09-17). Re: [Flightgear-devel] Goodbye fgpanel - hello fgpanel 2.0.
(powered by Instant-Cquotes)
Cquote2.png
Cquote1.png Torsten Dreyer (2015-02-04). [Flightgear-devel] Introducing Phi - a multiplatform user interface & instructor station.


Cquote2.png
Cquote1.png The design pattern is based on MVVM (Model-View-ViewModel).


Communication with the flightgear instance is through AJAX calls and a
websocket for realtime updates of property changes.
It is web-app capable so you can not only run it on your mobile device
but also install it to it's home screen and run it without the browser
decoration. It prefers screen sizes of at least 7" (looks OK on Nexus 7
and good on iPad - looks crappy on a Nexus 4 or the iPod - looks
fantastic on a 27" retina iMac).

I'll try to get this into a stable and usable state during this release
cycle to have a functional version for the release of 3.6 in summer this
year.

Feedback and comments are welcome, co-workers are more than welcome ;-)


Cquote2.png

Web-based EFIS

Cquote1.png for a long time, I have been dreaming of a cross-platform, simple

solution to render 2d panels on a remote device.

I have just succeeded with my first partial implementation of a EFIS PFD
rendered in a web browser using nothing but existing web standards and a
running FlightGear instance having the internal web server enabled.


— Torsten Dreyer (2014-09-17). [Flightgear-devel] Goodbye fgpanel - hello fgpanel 2.0.
(powered by Instant-Cquotes)
Cquote2.png
Cquote1.png The EFIS is created from scalable vector graphics (svg), is animated by

JavaScript and driven by properties from FlightGear over websockets.
The same svg files that are used for the FlightGear internal canvas
based instruments can also be used for the browser based display, so
both instruments (that of the 3d model and that in your browser) look
100% alike. Websocket properties are exchanged at frame rate making
animations as smooth as they can get. Because it uses SVG, instruments
are always rendered at the highest available resolution of the device
without scaling artefacts.


— Torsten Dreyer (2014-09-17). [Flightgear-devel] Goodbye fgpanel - hello fgpanel 2.0.
(powered by Instant-Cquotes)
Cquote2.png
Cquote1.png Torsten Dreyer (2014-09-17). [Flightgear-devel] Goodbye fgpanel - hello fgpanel 2.0.


Cquote2.png
Cquote1.png If you want to give it a try, make sure you have fg and fgdata from

latest git HEAD.
Clone my ZivkoEdge repository from
git@...:t3r-fg-ac/zivkoedge.git, add the folder to your
--fg-aircraft option, fire up the Edge and pick "EFIS" from the "EDGE"
menu item.

As always: feedback is welcome.


— Torsten Dreyer (2014-09-17). [Flightgear-devel] Goodbye fgpanel - hello fgpanel 2.0.
(powered by Instant-Cquotes)
Cquote2.png


Why Phi ?

Cquote1.png Torsten Dreyer (2015-02-04). [Flightgear-devel] Introducing Phi - a multiplatform user interface & instructor station.


Cquote2.png