Skip to content

Commit

Permalink
Update docs/choreolib/auto-factory.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja authored Dec 31, 2024
1 parent 0b9ddb6 commit 102dbcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/choreolib/auto-factory.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ public AutoRoutine branching2024Auto() {

Auto bindings are used to bind event markers in trajectories made by the `AutoFactory` to commands. Commands added to the `AutoFactory` using `bind` exhibit the same behavior as those bound to `AutoTrajectory.atTime(String)`, except they are applied globally across all routines. This is useful if you have simpler actions that you want to trigger in any trajectory without much thought.

!!! warning
Even if a marker is bound individually in an `AutoTrajectory.atTime(String)` trigger, the global binding will still run, and cannot be disabled for a single marker.

```java
autoFactory
.bind("intake", intakeSubsystem.intake())
Expand Down

0 comments on commit 102dbcb

Please sign in to comment.