You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: road-runner/actions/src/main/kotlin/com/acmerobotics/roadrunner/Actions.kt
+20-38Lines changed: 20 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -353,29 +353,41 @@ class TrajectoryActionBuilder private constructor(
353
353
}
354
354
355
355
/**
356
-
* Schedules action [a] to execute in parallel starting at a displacement [ds] after the previous trajectory segment.
357
-
* The action start is clamped to the span of the current trajectory.
356
+
* Schedules action [a] to execute in parallel starting at a displacement [ds] relative to the start of the next trajectory segment, turn, or other action.
357
+
*
358
+
* If [ds] is positive, the action will execute [ds] units after the start of the next trajectory segment.
359
+
* If [ds] is negative, the action will execute [ds] units before the end of the previous trajectory segment.
360
+
* Note that the start of the next trajectory segment is the same as the end of the previous trajectory segment.
361
+
*
362
+
* The action start is clamped to the span of the current trajectory (not the trajectory segment),
363
+
* but the current trajectory will wait for the action to complete.
358
364
*
359
365
* Cannot be called without an applicable pending trajectory.
360
366
*/
361
367
// TODO: Should calling this without an applicable trajectory implicitly begin an empty trajectory and execute the
0 commit comments