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/green signal issue #261

Merged
merged 4 commits into from
Dec 20, 2023
Merged

Fix/green signal issue #261

merged 4 commits into from
Dec 20, 2023

Conversation

MishkaMN
Copy link

PR Details

Description

Supports: usdot-fhwa-stol/carma-platform#2228
Just renaming some constant to make it more explanatory.

Related GitHub Issue

usdot-fhwa-stol/carma-platform#2227

Related Jira Key

CDAR-619
https://usdot-carma.atlassian.net/browse/CDAR-619

Motivation and Context

How Has This Been Tested?

simulation pc 1

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.

@@ -53,6 +53,12 @@ enum class CarmaTrafficSignalState {
CAUTION_CONFLICTING_TRAFFIC=9
};

namespace time{

const int INFINITY_END_TIME_FOR_NOT_ENOUGH_STATES = 2147483647;
Copy link

Choose a reason for hiding this comment

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

This can be declared constexpr and should use std::numeric_limits (I assume this is indended to be the maximum int value):

constexpr auto INFINITY_END_TIME_FOR_NOT_ENOUGH_STATES{std::numeric_limits<int>::max()};

Copy link
Author

Choose a reason for hiding this comment

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

I think the date is for unix time maximum representable day https://en.wikipedia.org/wiki/Unix_time

Copy link

Choose a reason for hiding this comment

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

I'm not sure what you mean by this. Can you elaborate?

@MishkaMN MishkaMN requested a review from adamlm December 20, 2023 12:41
Copy link

@adamlm adamlm left a comment

Choose a reason for hiding this comment

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

Approved too early. Still have questions.

@MishkaMN MishkaMN requested a review from adamlm December 20, 2023 17:51
@MishkaMN MishkaMN merged commit 04c50b7 into carma-develop Dec 20, 2023
2 of 3 checks passed
@MishkaMN MishkaMN deleted the fix/green-signal-issue branch December 20, 2023 20:29
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