Skip to content

Commit

Permalink
Merge pull request #22 from ATAARobotics/Jacob-Guglielmin-patch-2
Browse files Browse the repository at this point in the history
Remove vision alignment activation code - doesn't work
  • Loading branch information
Alexander5015 authored Apr 12, 2022
2 parents 259f5f5 + d173507 commit 4781527
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/OI.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class OI {
public Trigger shootLow;
public Trigger shootHighFar;
public Trigger shootLaunchpad;
public Trigger abortVisionAlign;
//public Trigger abortVisionAlign;
public JoystickButton aimRight;
public JoystickButton aimLeft;
private double speed;
Expand All @@ -62,7 +62,7 @@ public OI() {
shootLow = gunnerStick.getDPadTrigger("ShootLow");
shootHighFar = gunnerStick.getDPadTrigger("ShootHighFar");
shootLaunchpad = gunnerStick.getDPadTrigger("ShootLaunchpad");
abortVisionAlign = gunnerStick.getDPadTrigger("AbortVisionAlign");
//abortVisionAlign = gunnerStick.getDPadTrigger("AbortVisionAlign");
climbMotorUp = gunnerStick.getWPIJoystickButton("ElevatorUp");
climbMotorDown = gunnerStick.getWPIJoystickButton("ElevatorDown");
climbArm = gunnerStick.getWPIJoystickButton("ToggleClimbArm");
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/frc/robot/Teleop.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ public void teleopPeriodic() {
xVelocity = joysticks.getXVelocity()*speed;
yVelocity = joysticks.getYVelocity()*speed;
rotationVelocity = joysticks.getRotationVelocity()*speed* 0.80;

}

//Run periodic tasks on the swerve drive, setting the velocity and rotation
Expand All @@ -197,15 +196,15 @@ private void configureBindings() {
)
);

joysticks.abortVisionAlign
/* joysticks.abortVisionAlign
.whenActive(() -> {
if (visionTargeting) {
visionTargeting = false;
limelight.setCameraMode(CameraMode.Driver);
}
visionEnabled = !visionEnabled;
});
}); */

joysticks.intake
.whileActiveOnce(
Expand Down

0 comments on commit 4781527

Please sign in to comment.