Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
finished intake mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierCraw committed Nov 21, 2024
1 parent dd9285b commit ec33b3d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 12 additions & 1 deletion src/main/java/com/team766/robot/rookie_bot/OI.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,18 @@ public void run(final Context context) {
context.startAsync(new PIDElevator(false));

}
if (joystick0.getButtonPressed)
if (joystick0.getButtonPressed(7)) {
Robot.intake.setintakePower(1, 1);

} if (joystick0.getButtonReleased(7)) {
Robot.intake.setintakePower(0, 0);

} if (joystick0.getButtonPressed(8)) {
Robot.intake.setintakePower(-1,-1);

} if (joystick0.getButtonReleased(8)) {
Robot.intake.setintakePower(0,0);
}

}
}
3 changes: 2 additions & 1 deletion src/main/java/com/team766/robot/rookie_bot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ public class Robot implements RobotConfigurator {
// Declare mechanisms (as static fields) here
public static Drive drive;
public static Elevator elevator;

public static intake intake;
@Override
public void initializeMechanisms() {
// Initialize mechanisms here
drive = new Drive();
elevator = new Elevator();
intake = new intake();
}

@Override
Expand Down

0 comments on commit ec33b3d

Please sign in to comment.