Board index FlightGear Support Tools Atlas

Atlas-like application on Android

Atlas is an addon that lets FlightGear users display a real-time "moving-map" of their flight.

Re: Atlas-like application on Android

Postby Michat » Mon Nov 27, 2017 6:37 pm

Notice that for the suggested map by @wlbragg user have to add --httpd=8080
User avatar
Michat
 
Posts: 919
Joined: Mon Jan 25, 2010 6:24 pm
Location: Spain
Version: 191b
OS: GNewSense

Re: Atlas-like application on Android

Postby wlbragg » Mon Nov 27, 2017 8:19 pm

Notice that for the suggested map by @wlbragg user have to add --httpd=8080


In fact you can use any open port you like, but they have to match in the browser and the port you add to the options. Note I used 5500 in both.

I got in the habit of avoiding 8080 as some ISP block that port for some types of IO and it is also a popular port for other application. However using localhost that shouldn't matter.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 3943
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: Atlas-like application on Android

Postby wkitty42 » Tue Nov 28, 2017 2:11 am

wlbragg has it right... any port as long as both FG and the browser know about it and it isn't already in use for something else... i've been using 5500 because that's what FGRun used and i learned FG command options from FGRun... i've not seen any need to change it and, in fact, have added more for other services (eg: ATC)...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 4161
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Atlas-like application on Android

Postby rooman » Sun Dec 03, 2017 11:15 am

FlightGearMap

The beauty of this idea is the instruments/map/etc available on a seperate Android device thus freeing up the main screen and giving more of a real simulation experiance.

Trying to put the map in a browser window slows down FG by half a dozen fps and just gives the error Localhost does not authorize this connexion...
rooman
 
Posts: 10
Joined: Sun Apr 12, 2015 6:26 pm
Location: Lausanne, Switzerland

Re: Atlas-like application on Android

Postby Hooray » Sun Dec 03, 2017 11:21 am

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: 11100
Joined: Tue Mar 25, 2008 8:40 am

Re: Atlas-like application on Android

Postby wkitty42 » Sun Dec 03, 2017 1:41 pm

rooman wrote in Sun Dec 03, 2017 11:15 am:and just gives the error Localhost does not authorize this connexion...

what is your FG command line that sets up the internal web server?
what is the URL you are putting in your browser's address bar?
what is your localhost address? generally it is 127.0.0.1 but some systems set it up differently...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 4161
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Atlas-like application on Android

Postby rooman » Sun Dec 03, 2017 6:14 pm

I've just realised that I forgot to insert --httpd=8080 in settings! Of course it works fine now :-) tks.

But FlightgearMap can put the instruments on any android device increasing realism and I still have recurrent connection timeouts!
any idea how to debug this prob?
I can ping the phones/tablet from the pc with no loss,
FG settings have the right lines inserted,
andtlas.xml is copied over,
udp and tcp ports are open in firewall,

It did actually work really well before, I've no idea what happened.
rooman
 
Posts: 10
Joined: Sun Apr 12, 2015 6:26 pm
Location: Lausanne, Switzerland

Re: Atlas-like application on Android

Postby Hooray » Sun Dec 03, 2017 6:41 pm

I don't even know what kind of protocols/connectivity it is using - so it's hard to troubleshoot this, unless someone steps in who's more familiar with the tools involved here.
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: 11100
Joined: Tue Mar 25, 2008 8:40 am

[solved] Re: Atlas-like application on Android

Postby rooman » Sun Dec 03, 2017 6:57 pm

last system updates wiped out the andatlas.xml file which must be in the FG_ROOT folder!
rooman
 
Posts: 10
Joined: Sun Apr 12, 2015 6:26 pm
Location: Lausanne, Switzerland

Re: Atlas-like application on Android

Postby wlbragg » Mon Dec 04, 2017 4:02 am

But FlightgearMap can put the instruments on any android device increasing realism and I still have recurrent connection timeouts!

Do you mean it works sometimes and then other times it times out? Or it times out and never works?

Not trying to turn you off of FGMap, but the built in one works on any Android tablet that runs a web browser.

Edit:
To be sure, I tested FGMap and used the following settings

--generic=socket,out,10,192.168.0.8,5501,udp,andatlas
--telnet=socket,in,20,,9000,tcp

included andatlas.xml in the fgdata/Protocol folder and it worked fine on my Android device.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 3943
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Previous

Return to Atlas

Who is online

Users browsing this forum: No registered users and 2 guests