Skip to content

Commit 295bc53

Browse files
committed
Revise comment.
1 parent 73b9118 commit 295bc53

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

wpimath/src/main/java/org/wpilib/math/trajectory/TrapezoidProfile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public State calculate(double t, State current, State goal) {
189189
// In the case that the sign of the profile and the sign of the acceleration are identical, the
190190
// recovery can be treated as an extension of the first segment. In the case that they differ,
191191
// the recovered state will have a velocity of v_l and the above calculated t_1 will be zero. To
192-
// handle this, a check can be added on the first segment to ensure proper recovery.
192+
// handle this, a check is added to the sampling of the first segment to ensure proper recovery.
193193
m_profile.t_1 += recoveryTime;
194194

195195
double acceleration = sign * m_constraints.maxAcceleration;

wpimath/src/main/native/include/wpi/math/trajectory/TrapezoidProfile.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ class TrapezoidProfile {
160160
// are identical, the recovery can be treated as an extension of the first
161161
// segment. In the case that they differ, the recovered state will have a
162162
// velocity of v_l and the above calculated t_1 will be zero. To handle
163-
// this, a check can be added on the first segment to ensure proper
164-
// recovery.
163+
// this, a check is added to the sampling of the first segment to ensure
164+
// proper recovery.
165165
m_profile.t_1 += recoveryTime;
166166

167167
auto advance = [](wpi::units::second_t time, Acceleration_t acceleration,

0 commit comments

Comments
 (0)