Board index FlightGear Support Interfacing

problem with socket

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

problem with socket

Postby sgb110 » Thu Sep 29, 2011 10:11 pm

hi
how send command option (such as --timefday) with socket?

thanks
sgb110
 
Posts: 3
Joined: Thu Sep 29, 2011 10:06 pm

Re: problem with socket

Postby Hooray » Sun Oct 02, 2011 5:21 pm

You don't. Instead, you can directly access the underlying properties in the property tree.

Really, this isn't complicated at all - all variables in FlightGear will at some point end up in the property tree, that is where things are stored and can be accessed/read and modified later on.

So, if you don't have any background knowledge at all, the easiest thing to get started would be looking at similar (or possibly even identical features) in FlightGear and simply check what properties are being used. This could be done by inspecting the source code, or -in your case- by simply looking at the "time of day" dialog in $FG_ROOT/gui/dialogs: http://gitorious.org/fg/fgdata/trees/master/gui/dialogs

Specifically, you need to have a look at timeofday.xml: http://gitorious.org/fg/fgdata/blobs/ma ... eofday.xml

There, you can see all properties being used.
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 !
Nasal | Projects | Core development |
Programming resources
Hooray
 
Posts: 6449
Joined: Tue Mar 25, 2008 8:40 am


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest