Skip to content

Commit

Permalink
clarify indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolSpy3 committed Jul 29, 2024
1 parent 0527481 commit ff1465c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/src/systemTest/java/frc/robot/MotorControllerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,11 @@ void testCorrectRotationInAutonomous() throws Exception {
"robotTime = {0}, simTimeSec = {1}, speedRadPerSec = {2}",
s.getRobotTimeSec(), s.getSimTimeSec(),
s.angularVelocity(m.shaftDefPath).norm());
})).atSec(
})).atSec(
MotorControllerRobot.tStartMotorsSecs + 5 * simStepSizeSecs,
stateChecker((s, m) -> {
m.m1 = new Measurement(s.getSimTimeSec(),
m.getActualShaftSpeedRadPerSec(s));

}))
.atSec((MotorControllerRobot.tStartMotorsSecs
+ MotorControllerRobot.tStopMotorsSecs) / 2,
Expand All @@ -290,11 +289,11 @@ void testCorrectRotationInAutonomous() throws Exception {
m.getActualShaftSpeedRadPerSec(s));
m.assertCorrectTimeConstant(0.5);
}))
.atSec(MotorControllerRobot.tStopMotorsSecs
.atSec(MotorControllerRobot.tStopMotorsSecs
+ 5 * simStepSizeSecs, stateChecker((s, m) -> {
m.m1 = new Measurement(s.getSimTimeSec(),
m.getActualShaftSpeedRadPerSec(s));
}))
}))
.atSec(MotorControllerRobot.tStopMotorsSecs
+ (MotorControllerRobot.tStopMotorsSecs
- MotorControllerRobot.tStartMotorsSecs)
Expand Down

0 comments on commit ff1465c

Please sign in to comment.