Package frc.robot.subsystems.pdh
Class PDH
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.pdh.PDH
Subsystem for monitoring the Power Distribution Hub (PDH) health and status.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears all faults and warnings.booleanReturns whether or not the subsystem is healthyvoidperiodic()Updates hardware inputs, logs data, and updates status alerts.Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
PDH
Creates a new PDH subsystem.- Parameters:
io- The IO implementation to use.
-
-
Method Details
-
periodic
public void periodic()Updates hardware inputs, logs data, and updates status alerts. -
isHealthy
public boolean isHealthy()Returns whether or not the subsystem is healthy -
clearFaults
public void clearFaults()Clears all faults and warnings.- Specified by:
clearFaultsin interfaceMonitored
-