MISB 0903 Converter Library  Version 2.02
Using STD0903 Converter to create a VMTI packet and get a data buffer (C++).

This is an example of STD0903 Converter usage for VMTI packet creation. This code snippet demonstrates how to create an VMTI packet, set Local Data Set parameters, add VTargetSeries and encode it (get a pointer to the data buffer.


#include "ISTD0903Conv.h"

CreateVTrackerLDS function

VTrackerLDS* CreateVTrackerLDS(unsigned __int64 id)
{
VTrackerLDS* vLds = new VTrackerLDS(id);
vLds->SetDetectionStatus(TrackStatus::Active);
vLds->SetAlgorithm("Algo1");
vLds->SetConfidence(50);
vLds->SetNumberOfPoints(NUMBER_OF_POINTS);
// Add Locus (let's set NUMBER_OF_POINTS items)
for (int i = 0; i < NUMBER_OF_POINTS; i++)
{
vLds->AddToLocus(LocationType(34.5 + (double)i/1000.0, 32.0 + (double)i/1000.0, 10.0));
}
return vLds;
}

For the complete sample source please see Sample Code - MISB 0903 Converter Demo Application (C++)

Untitled 1




 Copyright 2014,    IMPLEOTV SYSTEMS LTD