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/
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
[x] Defect fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that cause existing functionality to change)
Checklist:
[ ] I have added any new packages to the sonar-scanner.properties file
[ ] My change requires a change to the documentation.
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: