Package frc.robot.utilities
Class Power
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.utilities.Power
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
public class Power
extends edu.wpi.first.wpilibj2.command.SubsystemBase
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic double[]static doublestatic doublegetCurrent(int channel) static boolean[]static boolean[]static booleanstatic doublestatic booleanhasFault()static booleanvoidperiodic()static voidsetSwitchableChannel(boolean enabled) 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, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Method Details
-
getVoltage
public static double getVoltage() -
getCurrent
public static double getCurrent() -
getCurrent
public static double getCurrent(int channel) -
getAllCurrents
public static double[] getAllCurrents() -
getSwitchableChannel
public static boolean getSwitchableChannel() -
setSwitchableChannel
public static void setSwitchableChannel(boolean enabled) -
enableUnderglow
public static void enableUnderglow() -
disableUnderglow
public static void disableUnderglow() -
getFaults
public static boolean[] getFaults() -
hasFault
public static boolean hasFault() -
clearStickyFaults
public static void clearStickyFaults() -
getStickyFaults
public static boolean[] getStickyFaults() -
hasStickyFault
public static boolean hasStickyFault() -
periodic
public void periodic()
-