Class 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
    • 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 deployed
      void set​(LinearActuator.ActuatorState state)
      Set the actuator state
      • 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.wpilibj.Sendable

        addChild, getName, getSubsystem, setName, setName, setName, setName, setSubsystem
    • Constructor Detail

      • LinearActuator

        public LinearActuator​(int pcmID,
                              int pcmChannel)
        Create a Linear Actuator that is powered via a Pneumatic Control Module
        Parameters:
        pcmID - PCM CAN device ID
        pcmChannel - PCM device channel
    • Method Detail

      • 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 interface edu.wpi.first.wpilibj.Sendable
      • clearAllFaults

        public void clearAllFaults()