usdot-fhwa-stol / carma-messenger

CARMA Messenger will be a scaled down version of CARMA Platform for a non-automated vehicle to participate in Cooperative Driving Automation (CDA). Doxygen Source Code Documentation: https://usdot-fhwa-stol.github.io/documentation/carma-messenger/
14 stars 11 forks source link

fix time from header calc #231

Open adev4a opened 2 months ago

adev4a commented 2 months ago

PR Details

This PR fixes the timestamp calculation for the generated mobility message. Currently the package uses the second field from the GPSFix message constructed from the torc pinpoint driver's input, but ideally the nanosecond field should also be used.

The fix updates the implementation by converting the header field to a nanoseconds value which is then used to calculate the required timestamp in milliseconds.

Description

Related GitHub Issue

Related Jira Key

Motivation and Context

How Has This Been Tested?

Types of changes

Checklist: