Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix time from header calc #231

Merged
merged 1 commit into from
Oct 22, 2024
Merged

fix time from header calc #231

merged 1 commit into from
Oct 22, 2024

Conversation

adev4a
Copy link
Contributor

@adev4a adev4a commented Aug 6, 2024

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

  • 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.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@adev4a adev4a requested a review from JonSmet August 6, 2024 13:26
@MishkaMN
Copy link
Contributor

@adev4a Is this still needed?

@adev4a adev4a requested a review from MishkaMN October 22, 2024 19:17
Copy link
Contributor

@MishkaMN MishkaMN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@MishkaMN MishkaMN merged commit bb4dcea into develop Oct 22, 2024
3 checks passed
@MishkaMN MishkaMN deleted the fix/traffic_incident_time branch October 22, 2024 19:31
@MishkaMN MishkaMN mentioned this pull request Oct 22, 2024
9 tasks
MishkaMN added a commit that referenced this pull request Oct 22, 2024
<!-- Thanks for the contribution, this is awesome. -->

# PR Details
## Description
develop-humble mirror PR of: 
#231
<!--- Describe your changes in detail -->

## Related GitHub Issue

<!--- This project only accepts pull requests related to open GitHub
issues or Jira Keys -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Please DO NOT name partially fixed issues, instead open an issue
specific to this fix -->
<!--- Please link to the issue here: -->

## Related Jira Key

<!-- e.g. CAR-123 -->

## Motivation and Context

<!--- Why is this change required? What problem does it solve? -->

## How Has This Been Tested?

<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

## Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->

- [ ] 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:

<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->

- [ ] I have added any new packages to the sonar-scanner.properties file
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have read the
[**CONTRIBUTING**](https://github.com/usdot-fhwa-stol/carma-platform/blob/develop/Contributing.md)
document.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants