Robot Core Documentation
Loading...
Searching...
No Matches
edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior Enum Reference

Public Attributes

 kCancelSelf
 
 kCancelIncoming
 

Detailed Description

An enum describing the command's behavior when another command with a shared requirement is scheduled.

Member Data Documentation

◆ kCancelIncoming

edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior.kCancelIncoming

This command continues, and the incoming command is not scheduled.

◆ kCancelSelf

edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior.kCancelSelf

This command ends, end(true) is called, and the incoming command is scheduled normally.

This is the default behavior.


The documentation for this enum was generated from the following file: