From f6a8e93dd1ff9ac4439b572485f5df6163fe3b98 Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Mon, 14 Nov 2022 19:43:11 -0500 Subject: [PATCH 1/2] gdxfh --- .../frc/robot/commands/Acctivershaker.java | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/main/java/frc/robot/commands/Acctivershaker.java diff --git a/src/main/java/frc/robot/commands/Acctivershaker.java b/src/main/java/frc/robot/commands/Acctivershaker.java new file mode 100644 index 0000000..0cec6fd --- /dev/null +++ b/src/main/java/frc/robot/commands/Acctivershaker.java @@ -0,0 +1,34 @@ +// Copyright (c) FIRST and other WPILib contributors. +// Open Source Software; you can modify and/or share it under the terms of +// the WPILib BSD license file in the root directory of this project. + +package frc.robot.commands; + +import edu.wpi.first.wpilibj2.command.CommandBase; + +public class Acctivershaker extends CommandBase { + /** Creates a new Acctivershaker. */ + public Acctivershaker() { + // Use addRequirements() here to declare subsystem dependencies. + } + + // Called when the command is initially scheduled. + @Override + public void initialize() { + + } + + // Called every time the scheduler runs while the command is scheduled. + @Override + public void execute() {} + + // Called once the command ends or is interrupted. + @Override + public void end(boolean interrupted) {} + + // Returns true when the command should end. + @Override + public boolean isFinished() { + return false; + } +} From 7e5635995cb7c6ab97a24ddcc5789d99b5af985e Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Wed, 16 Nov 2022 19:45:54 -0500 Subject: [PATCH 2/2] qwer --- src/main/java/frc/robot/commands/Acctivershaker.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/commands/Acctivershaker.java b/src/main/java/frc/robot/commands/Acctivershaker.java index 0cec6fd..12d2dd8 100644 --- a/src/main/java/frc/robot/commands/Acctivershaker.java +++ b/src/main/java/frc/robot/commands/Acctivershaker.java @@ -5,17 +5,22 @@ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; +import frc.robot.subsystems.Pistonshaker; public class Acctivershaker extends CommandBase { + private Pistonshaker pistonshaker; /** Creates a new Acctivershaker. */ - public Acctivershaker() { + public Acctivershaker(Pistonshaker pistonshaker) { + this.pistonshaker = pistonshaker; // Use addRequirements() here to declare subsystem dependencies. + addRequirements(pistonshaker); } + // Called when the command is initially scheduled. @Override public void initialize() { - + } // Called every time the scheduler runs while the command is scheduled.