-
Notifications
You must be signed in to change notification settings - Fork 13
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
Conversation
@@ -53,6 +53,12 @@ enum class CarmaTrafficSignalState { | |||
CAUTION_CONFLICTING_TRAFFIC=9 | |||
}; | |||
|
|||
namespace time{ | |||
|
|||
const int INFINITY_END_TIME_FOR_NOT_ENOUGH_STATES = 2147483647; |
There was a problem hiding this comment.
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()};
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this 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.
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
Checklist: