-
Notifications
You must be signed in to change notification settings - Fork 8
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
🚸 (emergency stop): Add minimal delay to use emergency stop #1192
🚸 (emergency stop): Add minimal delay to use emergency stop #1192
Conversation
75cf2fd
to
92e8e6c
Compare
File comparision analysis report🔖 Info
Click to show memory sections
📝 SummaryClick to show summary
🗺️ Map files diff outputClick to show diff list
|
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.
LGTM 👍
File comparision analysis report🔖 Info
Click to show memory sections
📝 SummaryClick to show summary
🗺️ Map files diff outputClick to show diff list
|
Codecov Report
@@ Coverage Diff @@
## develop #1192 +/- ##
========================================
Coverage 96.10% 96.10%
========================================
Files 146 146
Lines 3544 3544
========================================
Hits 3406 3406
Misses 138 138
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
92e8e6c
to
6349c7a
Compare
96ef6bb
to
ef2deb8
Compare
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.
LGMT 👍
ef2deb8
to
715bd0b
Compare
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.
A question about a delay, and a suggestion to move the delay to be more accessible.
auto minimal_delay_over = 1001ms; | ||
auto minimal_delay_over = 1001s; |
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.
Why this change from ms
to s
?
If you want a delay over 11s, it is just 11s
or 11001ms
@@ -345,7 +345,7 @@ class RobotController : public interface::RobotController | |||
auto is_autonomous_mode = state_machine.is(system::robot::sm::state::autonomous_activities); | |||
auto NOT_is_autonomous_mode = !is_autonomous_mode; | |||
|
|||
if (card == MagicCard::emergency_stop) { | |||
if (card == MagicCard::emergency_stop && rtos::Kernel::Clock::now() - kSystemStartupTimestamp > 10s) { |
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.
You don't want a parameter as the startup duration to be drown in the code, I suggest to set at the start of the method or set in member variables.
Kudos, SonarCloud Quality Gate passed! |
No description provided.