Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

migrate intake beam break detection to Interrupts #43

Description

@realjoshuau

JavaDoc: https://github.wpilib.org/allwpilib/docs/release/java/edu/wpi/first/wpilibj/AsynchronousInterrupt.html

it's pretty simple, instead of doing something like:

  public Command intakeIn() {
    return this.run(
// insert command body here
        .until(beambreak::isTriggered)
        .andThen(this.off());
  }


you would basically remove the .until and .andThen, and migrate the this.off() call to the callback of the AsyncInterrupt.

this should improve beam break perf, but remains to be seen.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions