Csaba,
Thanks, that makes complete sense, I did not spot that the id may be how it
is registered.
However, I have checked what value comes back from id and it is
'instrument-1-taradar', so i changed my call to:
globals->get_subsystem("instrument-1-taradar");
but this is still returning NULL!
i
way?
Thanks
Robbo
> Date: Tue, 11 Oct 2011 23:42:42 +0200
> From: bre...@gmail.com
> To: flightgear-devel@lists.sourceforge.net
> Subject: Re: [Flightgear-devel] Object scope help
>
> On 11.10.2011 23:31, Robbo wrote:
> > TaRadar* _taradar_node = (TaRadar*) globals->
On Tue, Oct 11, 2011 at 11:31 PM, Robbo wrote:
>
> The classes are instantiated within instrument_manager:
>
> } else if ( name == "taradar" ) {
> set_subsystem( id, new TaRadar( node ), 1 );
Notice that the subsystem will be registered using the "id" not the
"name". So make s
On 11.10.2011 23:31, Robbo wrote:
> TaRadar* _taradar_node = (TaRadar*) globals->get_subsystem("
> taradar");
>
> Now then, if TaRadar::getAngle() has the following fixed code:
> return 10;
> everything works ok, but if the method returns an object variable:
> return _angle;
> I get a segmentation
4 matches
Mail list logo