How to use traces in DENM message?Currently I made the following code based on the code available in caservice.cc ......but not sure how to decode it to be used in indicate method.
auto path_history = vanetza::asn1::allocate();
for (unsigned i = 0; i < 23; ++i)
{
PathPoint pathPoint = vanetza::asn1::allocate();
pathPoint->pathDeltaTime = vanetza::asn1::allocate();
(pathPoint->pathDeltaTime) = (i + 1) PathDeltaTime_tenMilliSecondsInPast 10;
pathPoint->pathPosition.deltaLatitude = DeltaLatitude_unavailable;
pathPoint->pathPosition.deltaLongitude = DeltaLongitude_unavailable;
pathPoint->pathPosition.deltaAltitude = DeltaAltitude_unavailable;
ASN_SEQUENCE_ADD(path_history, pathPoint);
}
asn_sequence_add(&message->denm.location->traces, path_history);
Is it the way? how to decode traces to be used in indicate method? Any clue? Thanks in advance.
Hi,
How to use traces in DENM message?Currently I made the following code based on the code available in caservice.cc ......but not sure how to decode it to be used in indicate method.
auto path_history = vanetza::asn1::allocate();
for (unsigned i = 0; i < 23; ++i)
{
PathPoint pathPoint = vanetza::asn1::allocate();
pathPoint->pathDeltaTime = vanetza::asn1::allocate();
(pathPoint->pathDeltaTime) = (i + 1) PathDeltaTime_tenMilliSecondsInPast 10;
pathPoint->pathPosition.deltaLatitude = DeltaLatitude_unavailable;
pathPoint->pathPosition.deltaLongitude = DeltaLongitude_unavailable;
pathPoint->pathPosition.deltaAltitude = DeltaAltitude_unavailable;
ASN_SEQUENCE_ADD(path_history, pathPoint);
}
asn_sequence_add(&message->denm.location->traces, path_history);
Is it the way? how to decode traces to be used in indicate method? Any clue? Thanks in advance.
Regards, Ambica