• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Traffic Radar

Messages
2
Country
us-hawaii
Does anyone know how to "fix" the TrafficRadarXML.dll module provided by Arne? It's available from Avsim, called 'trafficradarxml201.zip'.
The download also has gauge examples and source code.
I've managed to integrate it into Ken Mitchell's A320 panel MFD and it works and looks great 'til the dread "TICK18 time rollover" when it
locks up. I've found the following info:

Up with a fresh newsPosted Image there is a small story: recently i was sitting on the apron after another Arne's TCAS gauge test flight. 1

hour "in-flight" has passed long away and suddenly i've decided to resize main panel. and voila! the TCAS gauge was working

again!:Hug:So, i became well assured that this is time rollover as i mentioned previously. And where is the problem?ok, look at this part of

Arne's code:

void MyGaugeCDrawable::Update(void){ lookup_var(&m_tick18); if(m_radar==NULL) return; if(m_owner==NULL)

return; if(m_tick18.var_old.n+TICK_MODULO>m_tick18.var_value.n) return; m_recalced =

true; m_radar->QueryAiData((int)m_maxnum_act,m_max_range_nm, m_owner-

>GetTimeSepTA(),m_owner->GetTimeSepRA(), m_owner->GetDistanceSepTA

(),m_owner->GetDistanceSepRA(), m_owner->GetAltitudeSepTA(),m_owner-

>GetAltitudeSepRA() ); m_tick18.var_old = m_tick18.var_value;}]

=================================================
This is from XMLCCallbacks.cppIf you look presizely you will see (in line 8) that if m_tick18.var_value.n would oddly become zero again,

the essential thing of Update call - m_radar->QueryAiData would never happen because m_tick18.var_old.n+TICK_MODULO - (1 time per

second updating) would always be greater than that rollovered MS messAnyway, all you need is to add checking for m_tick18.var_value.n

and reset the m_tick18.var_old.njust like this...

void MyGaugeCDrawable::Update(void){ lookup_var(&m_tick18); if(m_radar==NULL) return; if(m_owner==NULL)

return; //additional checking against rollover :) if (m_tick18.var_value.n<m_tick18.var_old.n) m_tick18.var_old =

m_tick18.var_value; if(m_tick18.var_old.n+TICK_MODULO>m_tick18.var_value.n) return; m_recalced =

true; m_radar->QueryAiData((int)m_maxnum_act,m_max_range_nm, m_owner-

>GetTimeSepTA(),m_owner->GetTimeSepRA(), m_owner->GetDistanceSepTA

(),m_owner->GetDistanceSepRA(), m_owner->GetAltitudeSepTA(),m_owner-

>GetAltitudeSepRA() ); m_tick18.var_old = m_tick18.var_value;}

==========================
But.. there was the other side of the coin . After panel resizing XML variable P:Absolute time rollovers also. Meaning that your favourite

clock gauge will show you pretty nice zeros :(
===============================================

'dragonflightdesign', on 25 Sept 2010 - 12:47 PM, said:
You might want to remove the rollover checks completely. There was an undocumented update with FS2K2 when the original UINT16 time

limit of 65535 was changed to a 32-bit integer; the rollover period now is in excess of 7.5 years. ACES forgot to update the SDK. ESP also

still states 65535, IIRC.-Dai
So this means TICK18 has been an UINT32 since FS2K2? Wow, seems to be new to me. Then again, I don't do gauges more than every

once in a while, haha. Posted Image Thanks for the "update" despite the dusty thread. :Party:RegardsEtienne

===============================================

I'm hoping someone can shed some light on this. Working with dll and C programing are way beyond my ken. Thanks.
 
Thanks for your reply 'Heretic', I forgot to mention in my original post that I'm running Fs9. Also, the zip file mentioned above is the repackaging of Arne Bartels original traffic radar module by Mr. Dawson.
 
It's more than simple "repackaging" my friend, he has fixed it to work properly. I had need of having it work in FSX, and Doug kindly came through with a solution. :D
 
Back
Top