-
Notifications
You must be signed in to change notification settings - Fork 2
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
Slipping detection #193
base: master
Are you sure you want to change the base?
Slipping detection #193
Conversation
Codecov Report
@@ Coverage Diff @@
## master #193 +/- ##
==========================================
+ Coverage 71.65% 71.97% +0.32%
==========================================
Files 84 85 +1
Lines 1623 1638 +15
Branches 151 151
==========================================
+ Hits 1163 1179 +16
+ Misses 460 459 -1
Continue to review full report at Codecov.
|
implicit val (clock, triggerClock) = ClockMocking.mockedClockTicker | ||
val period = Milliseconds(5) | ||
|
||
test("left and right slipping") { |
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.
Please include more descriptive test names that describe the specific parameters and conditions you are testing. For example, "test no slipping detected with no linear or angular acceleration
val angularVelocity: Stream[AngularVelocity] = Stream.periodic(period)(RadiansPerSecondSquared(5)).integral | ||
val linearAcceleration: Stream[Acceleration] = Stream.periodic(period)(FeetPerSecondSquared(5)) | ||
val leftEncoderVelocity: Stream[Velocity] = Stream.periodic(period)(FeetPerSecondSquared(2)).integral | ||
val rightEncoderVelocity: Stream[Velocity] = Stream.periodic(period)(FeetPerSecondSquared(9.5)).integral |
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.
Please use smaller, easier to compute numbers to avoid mistakes in unit tests.
|
||
triggerClock.apply(period) | ||
triggerClock.apply(period) | ||
triggerClock.apply(period) |
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 do you call apply so many times?
No description provided.