diff --git a/commandsv3/src/main/java/org/wpilib/command3/Scheduler.java b/commandsv3/src/main/java/org/wpilib/command3/Scheduler.java index db30bae9aa..35e361569f 100644 --- a/commandsv3/src/main/java/org/wpilib/command3/Scheduler.java +++ b/commandsv3/src/main/java/org/wpilib/command3/Scheduler.java @@ -64,11 +64,13 @@ import org.wpilib.util.protobuf.ProtobufSerializable; * *

Lifecycle

* - *

The {@link #run()} method runs five steps: + *

The {@link #run()} method runs six steps: * *

    - *
  1. Call {@link #sideload(Consumer) periodic sideload functions} - *
  2. Poll all registered triggers to queue and cancel commands + *
  3. Cancel any commands bound to scopes that have gone inactive, such as having been scheduled + * in an opmode that's no longer selected on the driverstation. + *
  4. Call {@link #sideload(Consumer) periodic sideload functions}. + *
  5. Poll all registered triggers to queue and cancel commands. *
  6. Queue default commands for any mechanisms without a running command. The queued commands * can be superseded by any manual scheduling or commands scheduled by triggers in the next * run.