Package frc.lib5k.components.pneumatics
Class LazySolenoid
- java.lang.Object
-
- edu.wpi.first.wpilibj.SolenoidBase
-
- edu.wpi.first.wpilibj.Solenoid
-
- frc.lib5k.components.pneumatics.LazySolenoid
-
-
Constructor Summary
Constructors Constructor Description LazySolenoid(int moduleNumber, int channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush()
re-send the current state to flush CANvoid
logStatus()
Log component statusvoid
set(boolean on)
Set the value of a solenoid, but reduce CAN spam by only sending new datavoid
updateTelemetry()
Push telemetry data to NetworkTables-
Methods inherited from class edu.wpi.first.wpilibj.Solenoid
close, get, initSendable, isBlackListed, setPulseDuration, startPulse
-
Methods inherited from class edu.wpi.first.wpilibj.SolenoidBase
clearAllPCMStickyFaults, clearAllPCMStickyFaults, getAll, getAll, getPCMSolenoidBlackList, getPCMSolenoidBlackList, getPCMSolenoidVoltageFault, getPCMSolenoidVoltageFault, getPCMSolenoidVoltageStickyFault, getPCMSolenoidVoltageStickyFault
-
-
-
-
Method Detail
-
set
public void set(boolean on)
Set the value of a solenoid, but reduce CAN spam by only sending new data- Overrides:
set
in classedu.wpi.first.wpilibj.Solenoid
- Parameters:
on
- Should the solenoid turn on?
-
flush
public void flush()
re-send the current state to flush CAN
-
logStatus
public void logStatus()
Description copied from interface:Loggable
Log component status
-
updateTelemetry
public void updateTelemetry()
Description copied from interface:Loggable
Push telemetry data to NetworkTables- Specified by:
updateTelemetry
in interfaceLoggable
-
-