-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextendArm.java
More file actions
38 lines (30 loc) · 871 Bytes
/
extendArm.java
File metadata and controls
38 lines (30 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// 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;
import frc.robot.subsystems.Climb;
public class extendArm extends CommandBase {
private final Climb m_climb;
//Constructor
public extendArm(Climb climb){
m_climb = climb;
addRequirements(climb);
}
//Extend the pivot arm
@Override
public void initialize(){
m_climb.extendArm();
}
//Retract pivot arm to pull robot to the rung
@Override
public void execute(){
}
@Override
public void end(boolean interrupted){
}
@Override
public boolean isFinished(){
return false;
}
}