summaryrefslogtreecommitdiff
path: root/src/main/java/frc/robot/commands/IntakeIntermediate.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/frc/robot/commands/IntakeIntermediate.java')
-rw-r--r--src/main/java/frc/robot/commands/IntakeIntermediate.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/frc/robot/commands/IntakeIntermediate.java b/src/main/java/frc/robot/commands/IntakeIntermediate.java
index e8ea7ee..3f3cc67 100644
--- a/src/main/java/frc/robot/commands/IntakeIntermediate.java
+++ b/src/main/java/frc/robot/commands/IntakeIntermediate.java
@@ -3,18 +3,19 @@ package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.subsystems.Arm;
import frc.robot.subsystems.Chain;
+import frc.robot.subsystems.MainMech;
public class IntakeIntermediate extends Command
{
public Arm m_arm;
public Chain m_chain;
- public IntakeIntermediate(Arm arm, Chain chain)
+ public IntakeIntermediate(MainMech mech)
{
- m_arm = arm;
- m_chain = chain;
+ m_arm = mech.m_arm;
+ m_chain = mech.m_chain;
- addRequirements(arm, chain);
+ addRequirements(mech, m_arm, m_chain);
}
@Override