>>>>> "Ivan" == Ivan Ngeow  writes:

    >> What I want to do is have Atlas monitor the state of all AI
    >> aircraft.  The number of AI aircraft varies, so that's why I
    >> didn't think the generic protocol would work - the generic
    >> protocol only allows you to specify a fixed number of properties
    >> to transmit.
    >> 
    >> So, would it be possible to use Nasal to package all the data
    >> (into a string say), plop it into a property node, and then use
    >> the generic protocol to send that node?  Is there an even better
    >> way?

    Ivan> An alternate way is to purely use the --telnet protocol for
    Ivan> bidirectional communication. This means you have to poll FG to
    Ivan> find out how many AI aircraft there are, what their positions
    Ivan> are etc. There is no 'listener' interface with the telnet
    Ivan> protocol.

    Ivan> Using nasal to take advantage of the 'listener' interface and
    Ivan> crafting your own intelligent IPC property node is my
    Ivan> preferred route.

I would agree.  I would prefer a UDP-based protocol, so that I don't
have to worry about dealing with discovering if FlightGear is running,
and with dropped connections when FlightGear exits.  I'll try out your
Nasal suggestion and see how it works.  Thanks!

Brian

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to