-
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
hugo/feature/Use MotionKit in ReinforcerKit #1190
Conversation
File comparision analysis report🔖 Info
Click to show memory sections
📝 SummaryClick to show summary
🗺️ Map files diff outputClick to show diff list
|
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 #1190 +/- ##
===========================================
+ Coverage 96.08% 96.17% +0.09%
===========================================
Files 146 146
Lines 3546 3528 -18
===========================================
- Hits 3407 3393 -14
+ Misses 139 135 -4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
d689996
to
c554e6f
Compare
0da22a1
to
dd59e8f
Compare
c554e6f
to
2563355
Compare
2563355
to
cbea707
Compare
7f8a751
to
6dcfede
Compare
cbea707
to
dbd4840
Compare
6dcfede
to
fc28e5c
Compare
dbd4840
to
cdc4b6b
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.
LGTM 👍
I added a suggestion to use a callback on rotation complete to do something like stop the ledkit
it can be added in a follow-up PR and will make orchestration easier
cdc4b6b
to
796e3ef
Compare
796e3ef
to
2c4c9ac
Compare
EXPECT_CALL(mock_ears, setColor).Times(AnyNumber()); | ||
EXPECT_CALL(mock_ears, show).Times(AnyNumber()); | ||
EXPECT_CALL(mock_belt, setColor).Times(AnyNumber()); | ||
EXPECT_CALL(mock_belt, show).Times(AnyNumber()); |
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.
Okay, I didn't understand how LEDs are related to MotionKit, but it is not. You just fix the UNEXPECTED_CALL there.
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.
@HPezz can you put those in a function like we do in other tests:
EXPECT_CALL(mock_ears, setColor).Times(AnyNumber());
EXPECT_CALL(mock_ears, show).Times(AnyNumber());
EXPECT_CALL(mock_belt, setColor).Times(AnyNumber());
EXPECT_CALL(mock_belt, show).Times(AnyNumber());
static constexpr auto reinforcer_duration = 2700ms; | ||
static constexpr auto reinforcer_duration = 5s; |
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 did the duration double?
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 with some suggestions.
spikes/lk_reinforcer/main.cpp
Outdated
auto ears = CoreLED<LedKit::kNumberOfLedsEars> {spi::ears}; | ||
auto belt = CoreLED<LedKit::kNumberOfLedsBelt> {spi::belt}; |
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 would prefer you keep this part as it is.
the old form is used everywhere.
if we want to refactor this, let's do it in another PR (not sure it's important now though)
EXPECT_CALL(mock_ears, setColor).Times(AnyNumber()); | ||
EXPECT_CALL(mock_ears, show).Times(AnyNumber()); | ||
EXPECT_CALL(mock_belt, setColor).Times(AnyNumber()); | ||
EXPECT_CALL(mock_belt, show).Times(AnyNumber()); |
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.
@HPezz can you put those in a function like we do in other tests:
EXPECT_CALL(mock_ears, setColor).Times(AnyNumber());
EXPECT_CALL(mock_ears, show).Times(AnyNumber());
EXPECT_CALL(mock_belt, setColor).Times(AnyNumber());
EXPECT_CALL(mock_belt, show).Times(AnyNumber());
aeee3c5
to
94c5f4b
Compare
2c4c9ac
to
2b0da30
Compare
94c5f4b
to
28387fe
Compare
2b0da30
to
1478752
Compare
28387fe
to
2e45165
Compare
1478752
to
a2219bb
Compare
2e45165
to
246d3ac
Compare
a2219bb
to
94c3859
Compare
Kudos, SonarCloud Quality Gate passed! |
Moving reinforcers now use MotionKit to execute a perfect 1080 rotation