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 void
static void
static void
static double[]
static double
static double
getCurrent
(int channel) static boolean[]
static boolean[]
static boolean
static double
static boolean
hasFault()
static boolean
void
periodic()
static void
setSwitchableChannel
(boolean enabled) Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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()
-