![]() |
VR-Forces 5.0.2 Developer's Guide
|
The TDL Message Example Extension demonstrates the following:
In order to incorporate a protocol-specific extension in the VR-Forces front-end, the VR-Vantage Accessories concept is used. An accessory is an external plugin that can be used in association with a particular application driver (scene, transport, etc). In the case of this example, a transport driver is used to extend functionality of the system.
When using accessories to extend the protocol-specific workings, it is important to note the following:
The VR-Forces TDL (Tactical Data Link) system sends VR-Forces specific TDL messages that are handled outside of the normal VR-Forces Spot Report and Data Interaction messages. The VR-Forces TDL messages are show as spot report like icons on the screen, containing a fixed number of additional "lines" of information. You can show the extended TDL lines of information by selecting which information to show on the TDL Settings page.
This example will add a new line of information in relation to the entity that is currently being targeted by the reporting entity. This information will be shown in TDL Line 4. The back-end piece of this example will create and send the new ExampleTDLMessage message, filling in the appropriate information. The new example TDL message processor will add a callback for this message and then use the UUID of the VR-Forces object to relate this information to the TDL system. This is done by creating a makVrf::DtTDLGenericNetworkMessage, setting the unique identifier to tie this information to, and then sending that information to the TDL Message processor parent for processing. See the ExampleTDLMessageProcessor::processExTDLMessage for how this is done.
Using this example you can add any number of TDL messages and TDL information lines to your TDL report.
In the Launcher, click the Plug-ins button to bring up the Plug-ins Selection dialog. Enable the tdlMessage plugin. The plugin configuration includes both the tdlMessageSim and tdlVrfGuiAccessory plugins. Both the VrfSim and vrfGui blugins have to be loaded for this example to work.
To view the new behavior:
When you are done with the scenario, make sure to turn on ground truth for all items and to turn of TDL Message handling so the next scenario run goes as expected.
| ExampleTDLMessage | The message that contains the new VR-Forces TDL Message. |
| ExampleTDLMessageProcessor | Processor used to receive the new extended TDL message and take the information to display in the report |