-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added second motor and ElevatorDown.java
- Loading branch information
Showing
5 changed files
with
48 additions
and
22 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
main/java/frc/robot/Commands/frc/robot/commands/ElevatorDown.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package frc.robot.commands; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import frc.robot.subsystems.Elevator; | ||
|
||
public class ElevatorUp extends Command { | ||
private final Elevator elevator; | ||
|
||
public ElevatorDown(Elevator elevator) { | ||
this.elevator = elevator; | ||
|
||
addRequirements(elevator); | ||
} | ||
|
||
@Override | ||
public void execute() { | ||
elevator.down(); | ||
} | ||
|
||
@Override | ||
public void end(boolean interrupted) { | ||
elevator.hold(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,4 @@ public void execute() { | |
public void end(boolean interrupted) { | ||
elevator.hold(); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters