Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion choreolib/src/main/java/choreo/auto/AutoTrajectory.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ public Command cmd() {
this::cmdEnd,
this::cmdIsFinished,
driveSubsystem)
.withName("Trajectory_" + name);
.withName("Trajectory_" + name)
.onlyIf(routine.active());
}

/**
Expand Down
1 change: 1 addition & 0 deletions choreolib/src/test/java/choreo/auto/DoneTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public void testExecution() {
assertFalse(recentlyDone);

scheduler.schedule(routine.cmd());
scheduler.run(); // requred to mark routine active
scheduler.schedule(traj.cmd());
scheduler.run();

Expand Down
Loading