Package frc.lib5k.components
Class LinearActuator
- java.lang.Object
-
- frc.lib5k.components.LinearActuator
-
- All Implemented Interfaces:
edu.wpi.first.wpilibj.Sendable
public class LinearActuator extends java.lang.Object implements edu.wpi.first.wpilibj.SendablePCM-Powered Linear actuator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLinearActuator.ActuatorState
-
Constructor Summary
Constructors Constructor Description LinearActuator(int pcmID, int pcmChannel)Create a Linear Actuator that is powered via a Pneumatic Control Module
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearAllFaults()voidinitSendable(edu.wpi.first.wpilibj.smartdashboard.SendableBuilder builder)booleanisDeployed()Get if the actuator is deployedvoidset(LinearActuator.ActuatorState state)Set the actuator state
-
-
-
Method Detail
-
set
public void set(LinearActuator.ActuatorState state)
Set the actuator state- Parameters:
state- State
-
isDeployed
public boolean isDeployed()
Get if the actuator is deployed- Returns:
- Is deployed?
-
initSendable
public void initSendable(edu.wpi.first.wpilibj.smartdashboard.SendableBuilder builder)
- Specified by:
initSendablein interfaceedu.wpi.first.wpilibj.Sendable
-
clearAllFaults
public void clearAllFaults()
-
-