Hi,

On Tuesday 17 March 2009 23:01:38 Melchior Franz wrote:
> Update of /var/cvs/FlightGear-0.9/source/src/Instrumentation
> In directory baron.flightgear.org:/tmp/cvs-serv17937/src/Instrumentation
>
> Modified Files:
>       agradar.cxx rad_alt.cxx wxradar.cxx wxradar.hxx
> Log Message:
> wxradar: read aircraft data from the property tree, rather than AIBase
>
> This allows to display objects that are in /ai/models/, but not managed
> by the AI manager, and it follows fgfs' design principle that subsystems
> should communicate over the property tree (if possible). This is a tad
> slower, but the radar is only updated once every second.
>

FWIW, I just checked in a small change that allows the AI Air Traffic 
controller to request the AI Aircraft to set a squawk code. The actual 
assigned code is written to the property tree and could therefore be used by 
the radar code for display purposes. For now, I've bound the actual code to 

/ai/models/aircraft[x]/transponder-id

I'm open to suggestions for a more appropriate location in the property tree 
if that is deemed necessary.

BTW: What are "objects that are in /ai/models/ but not managed by the AI 
Manager? All the properties that are written to /ai/models  are part of the 
AIModels subsystem, (including multiplayer aircraft) and consequently managed 
by the AI Manager, or am I missing something?

Cheers,
Durk
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to