[Opengc-devel] multiple data sources?
Status: Pre-Alpha
Brought to you by:
madmartigan
From: Wendell T. <we...@ad...> - 2003-09-24 00:01:53
|
I am trying to add another data source, specifically to the NavTestGauge, but it isn't working. I was wondering if someone could provide some assistance. I want to have another udp input stream, similar to ogcFGDataSource.cpp. It would receive target data and display them on the Nav Test Gauge (somewhat like TCAS). I tried to follow how the FGDataSource is used (create a new instance in ogcAppObject.cpp; create a Set function in ogcRenderObject.h and ogcRenderWindow.cpp). These seem to work fine, as the new data source class is called, and the socket is opened. I think the OnIdle gets called, and reads the socket and parses the data. However, in the ogcNavTestComponent.cpp, the class seems to have been lost. It seems as if there are multiple instances of my new ogcTGDataSource class, and the instance doing the initializing and reading isn't the instance that the NavTestComponent has visibility to. I could have just jammed the udp reading into the FGDataSource section, but thought that possibly this was a better way. Suggestions? Wendell |