Board index FlightGear Support Interfacing

Use flight gear as out world scene generator?

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

Use flight gear as out world scene generator?

Postby Droogie » Mon Apr 09, 2018 4:03 pm

I would like to send airplane state, position, heading, roll, pitch... and see the appropriate view for the current state, couldn't find examples for that.
I'm New to flightgear.
Can someone refer to an example ?
Thanks
Droogie
 
Posts: 11
Joined: Mon Apr 09, 2018 3:55 pm

Re: Use flight gear as out world scene generator?

Postby wkitty42 » Mon Apr 09, 2018 6:45 pm

ummm... send from where to where? i'm guessing from some external program?
"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: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Use flight gear as out world scene generator?

Postby daveculp » Mon Apr 09, 2018 7:34 pm

There have been a few people doing this. I know one of them is Elias Tarasov, who used FlightGear as a visualizer: https://m.imgur.com/qvoTNMR

I don't have any specifics on doing this, but if you search the mailing list archives I think you'll find the relevant threads.
User avatar
daveculp
 
Posts: 505
Joined: Sun Feb 24, 2013 2:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10

Re: Use flight gear as out world scene generator?

Postby wkitty42 » Mon Apr 09, 2018 7:44 pm

there's also several topics here in these forums about it... i think a lot of them are using mathcad??
"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: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Use flight gear as out world scene generator?

Postby Droogie » Thu Apr 12, 2018 5:33 am

Yes, I'm talking about an external application that will do the state calculations, and I would like to send these outputs every XX ms to FlightGear application so it's state will behave accordingly.
Droogie
 
Posts: 11
Joined: Mon Apr 09, 2018 3:55 pm

Re: Use flight gear as out world scene generator?

Postby Thorsten » Thu Apr 12, 2018 7:30 am

Usually people seem to hook it up to matlab, so if you run a search for that over the forum/wiki, you might find something useful.

It seems to be a fairly frequent application.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Use flight gear as out world scene generator?

Postby wkitty42 » Thu Apr 12, 2018 1:30 pm

matlab! that's it... not mathcad... sorry for that...
"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: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Use flight gear as out world scene generator?

Postby Droogie » Mon Apr 16, 2018 8:59 pm

im not using Matlab (not familiar), just trying to send simple data over socket from python script:
Code: Select all
UDP_IP = "127.0.0.1"
UDP_PORT = 5500
packed_int = struct.pack("f",33.33)
packed_int += struct.pack("f",33.33)

MESSAGE = packed_int

print ("UDP target IP:", UDP_IP)
print ("UDP target port:", UDP_PORT)
print ("message:", MESSAGE)

sock = socket.socket(socket.AF_INET, # Internet
                     socket.SOCK_DGRAM) # UDP
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))   


i have tried it with or without protocol.xml (does this necessary?), nothing seems to had an impact.
does this the right forum for these issue ?
thanks
Droogie
 
Posts: 11
Joined: Mon Apr 09, 2018 3:55 pm

Re: Use flight gear as out world scene generator?

Postby Thorsten » Mon Apr 16, 2018 9:32 pm

What kind of documentation did you use for your tests so far?
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Use flight gear as out world scene generator?

Postby Droogie » Tue Apr 17, 2018 5:29 am

Combination of Readme.io, Flightgear wiki and random pieces of information on the net.
Droogie
 
Posts: 11
Joined: Mon Apr 09, 2018 3:55 pm


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 3 guests