Class MoveArm

All Implemented Interfaces:
Sendable

public class MoveArm extends Command
This command will move the arm to a requested angle.
  • Constructor Details

    • MoveArm

      public MoveArm(Arm arm, double armAngle, boolean armExtended)
      Requirements for the command.
      Parameters:
      arm - Arm subsystem.
      armAngle - Angle at which the arm should move to.
    • MoveArm

      public MoveArm(Arm arm, Supplier<ArmPosition> positionSupplier)
      Requirements for the command.
      Parameters:
      arm - Arm subsystem.
      positionSupplier - Supplier of ArmPosition
  • Method Details

    • initialize

      public void initialize()
      Overrides:
      initialize in class Command
    • end

      public void end(boolean interrupted)
      Overrides:
      end in class Command
    • isFinished

      public boolean isFinished()
      Overrides:
      isFinished in class Command