Board index FlightGear Support Interfacing

Flash/Actionscript standalone PFDs

Connecting two computers, using generic protocol, connecting with Matlab?

Flash/Actionscript standalone PFDs

Postby diande » Mon Jul 15, 2013 5:01 pm

well since the PFD is only reading information from the simulation and displaying it, I have decided that running a hole simulation on a standalone PC and then hiding it to display the instruments is too resource hungry. I am a good flash programmer, and i plan to buy a cheap Raspberry PI, put on it my Flash made PFD and somehow link it with the simulation. The problem is that I have no idea how exactly to get the info out of flightgear, and send it via LAN to a Adobe Flash made intrument panel....
If you have any suggestions......
Last edited by diande on Mon Jul 15, 2013 5:05 pm, edited 1 time in total.
diande
 
Posts: 17
Joined: Sat Jul 06, 2013 4:50 pm

Re: How do I make a 2D PFD with pages

Postby diande » Mon Jul 15, 2013 5:04 pm

if you help me to make it, we can create a great free sofware for cheap standalone displays. It will work in flash, but you will be able to make increadible animations, easy masking, support multiple pages... I just need to make a GUI to draw your instruments and animate them. But as I said, I am experienced AS3 developer and it will not be a problem at all
diande
 
Posts: 17
Joined: Sat Jul 06, 2013 4:50 pm

Re: How do I make a 2D PFD with pages

Postby Hooray » Mon Jul 15, 2013 5:10 pm

Yes, see the support/interfacing sub forum: viewforum.php?f=36

Your thread is no longer about the canvas or Nasal anymore. See especially the sticky thread: viewtopic.php?f=36&t=10173

if you help me to make it, we can create a great free sofware for cheap standalone displays. It will work in flash, but I will be able to make increadible animations, easy masking, support multiple pages... I just need to make a GUI to draw your i struments and animate them. But as I said, I am experienced AS3 developer and it will not be a provlem at all


Well, I have seen close to 10 different separate "standalone" instrument viewers implemented in various more or less esoteric languages/toolkits, including Perl, Python, Java, Ruby. Frankly, I do not believe in building even more - especially not using a proprietary toolkit like Flash/AS - if you are concerned about resource usage by FGPanel/FGFS, just use on the of the Android/Java-based projects:

Image

https://code.google.com/p/comete/
https://play.google.com/store/apps/deta ... droid.fgfs
https://play.google.com/store/search?q= ... ear&c=apps

Honestly, whenever something isn't directly integrated into FG, or at least written in FG-relevant language like C, C++ (or Nasal!), it's unlikely to be of long-term use to FlightGear as a project, we have seen countless examples of that, including dozens of Java-based side projects that ended up replicating tons of functionality that was already available, just because it was C++ code.
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: How do I make a 2D PFD with pages

Postby diande » Mon Jul 15, 2013 5:13 pm

I see......
diande
 
Posts: 17
Joined: Sat Jul 06, 2013 4:50 pm

Re: Flash/Actionscript standalone PFDs

Postby Hooray » Mon Jul 15, 2013 9:00 pm

You are obviously free to work on whatever you want, this is an open source project.

However, in my opinion, a more viable option would be to add a HTML5/AJAX-based display mode to the integrated http server, so that an arbitrary browser can be used to display a simple cockpit panel - note that this could even be based on existing instruments, because many of those are increasingly ported over to using PNG texture - so it would be just a matter of serving the required textures to the browser once, and then animating them via JavaScript. That would be a fairly simple enhancement, and it would be totally scalable - and native to FlightGear, without being specific to any particular platform or toolkit.

See:
http://wiki.flightgear.org/Property_Tree/Web_Server
https://code.google.com/p/flightgear-bu ... ail?id=396
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: Flash/Actionscript standalone PFDs

Postby Michat » Thu Jul 18, 2013 6:31 am

I could have blind faith and trust your excellent work, but not in regard to adobe, and what this can bring to the GPL software.

I even wonder how it could release your code under the GPL, using a previously contracted between adobe license and you, making it necessary for the adobe plugin run on users' computers.

I understand that we are faced with ethical-technical issue. Because one party (adobe) must underlie, mediating between you as a developer, I as a user, my computer and fg.

I'm agree for a native solution.
User avatar
Michat
 
Posts: 1226
Joined: Mon Jan 25, 2010 7:24 pm
Location: Spain
Version: 191b
OS: MX 21 Fluxbox oniMac


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest