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.Sendable
PCM-Powered Linear actuator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinearActuator.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 void
clearAllFaults()
void
initSendable(edu.wpi.first.wpilibj.smartdashboard.SendableBuilder builder)
boolean
isDeployed()
Get if the actuator is deployedvoid
set(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:
initSendable
in interfaceedu.wpi.first.wpilibj.Sendable
-
clearAllFaults
public void clearAllFaults()
-
-