Package com.marslib.diagnostics
Class SystemCheckCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.SequentialCommandGroup
com.marslib.diagnostics.SystemCheckCommand
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
public class SystemCheckCommand
extends edu.wpi.first.wpilibj2.command.SequentialCommandGroup
A comprehensive, robust pre-match diagnostic routine decoupled from mechanism logic.
Takes any number of SystemTestable objects and sequences them sequentially, starting
with a Battery Voltage Gate to ensure physical capability.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior -
Constructor Summary
ConstructorsConstructorDescriptionSystemCheckCommand(SystemTestable... subsystems) Safely iterates through all passed testable subsystems. -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.SequentialCommandGroup
addCommands, end, execute, getInterruptionBehavior, initialize, initSendable, isFinished, runsWhenDisabledMethods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, finallyDo, finallyDo, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
SystemCheckCommand
Safely iterates through all passed testable subsystems.- Parameters:
subsystems- Array or varargs of components implementing SystemTestable.
-