openlvc / disco

Java library for Distributed Interactive Simulation
11 stars 3 forks source link

Update RPR connection to populate HostObjectIdentifer in RadioTransmitter #45

Closed timpokorny closed 3 years ago

timpokorny commented 3 years ago

Many issues here:

There are some deeper issues here. In CNR/DIS, when a radio attaches to a platform it changes its entity id to match that of the host platform. Unfortunately there is no way to tell the difference between a TramistterPDU that has just changed its ID and an entirely different transmitter. This meant that when a change would happen, it would cause us to register an entirely new HLA object and start updating it.

I've fixed this "mostly" now, but it will only work for CNR applications IF they use the default site/app/entity id configuration settings. Otherwise, we’ll get duplicate objects. The old ones should time out and go away eventually, but I’m not going down that rabbit hole.