generated from StuyPulse/Phil
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from StuyPulse/se/7-19
Se/7 19
- Loading branch information
Showing
26 changed files
with
321 additions
and
195 deletions.
There are no files selected for viewing
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
10 changes: 0 additions & 10 deletions
10
src/main/java/com/stuypulse/robot/commands/arm/ArmToFerry.java
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
src/main/java/com/stuypulse/robot/commands/arm/ArmToLobFerry.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,10 @@ | ||
package com.stuypulse.robot.commands.arm; | ||
|
||
import com.stuypulse.robot.subsystems.arm.Arm; | ||
|
||
public class ArmToLobFerry extends ArmSetState{ | ||
|
||
public ArmToLobFerry(){ | ||
super(Arm.State.LOB_FERRY); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/stuypulse/robot/commands/arm/ArmToLowFerry.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,10 @@ | ||
package com.stuypulse.robot.commands.arm; | ||
|
||
import com.stuypulse.robot.subsystems.arm.Arm; | ||
|
||
public class ArmToLowFerry extends ArmSetState{ | ||
|
||
public ArmToLowFerry(){ | ||
super(Arm.State.LOW_FERRY); | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
src/main/java/com/stuypulse/robot/commands/arm/ArmToSpeaker.java
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
src/main/java/com/stuypulse/robot/commands/arm/ArmToSpeakerHigh.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,10 @@ | ||
package com.stuypulse.robot.commands.arm; | ||
|
||
import com.stuypulse.robot.subsystems.arm.Arm; | ||
|
||
public class ArmToSpeakerHigh extends ArmSetState{ | ||
|
||
public ArmToSpeakerHigh(){ | ||
super(Arm.State.SPEAKER_HIGH); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/stuypulse/robot/commands/arm/ArmToSpeakerLow.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,10 @@ | ||
package com.stuypulse.robot.commands.arm; | ||
|
||
import com.stuypulse.robot.subsystems.arm.Arm; | ||
|
||
public class ArmToSpeakerLow extends ArmSetState{ | ||
|
||
public ArmToSpeakerLow(){ | ||
super(Arm.State.SPEAKER_LOW); | ||
} | ||
} |
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
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
53 changes: 0 additions & 53 deletions
53
src/main/java/com/stuypulse/robot/commands/swerve/SwerveDriveAlignedFerryAndShoot.java
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
src/main/java/com/stuypulse/robot/commands/swerve/SwerveDriveAlignedSpeakerAndShoot.java
This file was deleted.
Oops, something went wrong.
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
35 changes: 35 additions & 0 deletions
35
src/main/java/com/stuypulse/robot/commands/swerve/SwerveDriveDriveAlignedLobFerry.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,35 @@ | ||
package com.stuypulse.robot.commands.swerve; | ||
|
||
import com.stuypulse.robot.Robot; | ||
import com.stuypulse.robot.constants.Field; | ||
import com.stuypulse.robot.subsystems.swerve.SwerveDrive; | ||
import com.stuypulse.stuylib.input.Gamepad; | ||
import edu.wpi.first.math.geometry.Rotation2d; | ||
import edu.wpi.first.math.geometry.Translation2d; | ||
|
||
|
||
public class SwerveDriveDriveAlignedLobFerry extends SwerveDriveDriveAligned { | ||
|
||
public SwerveDriveDriveAlignedLobFerry(Gamepad driver) { | ||
super(driver); | ||
} | ||
|
||
// returns pose of close amp corner | ||
private Translation2d getAmpCornerPose() { | ||
Translation2d targetPose = Robot.isBlue() | ||
? new Translation2d(0.0, Field.WIDTH - 1.5) | ||
: new Translation2d(0.0, 1.5); | ||
|
||
return targetPose; | ||
} | ||
|
||
@Override | ||
protected Rotation2d getTargetAngle() { | ||
return SwerveDrive.getInstance().getPose().getTranslation().minus(getAmpCornerPose()).getAngle().plus(Rotation2d.fromDegrees(180)); | ||
} | ||
|
||
@Override | ||
protected double getDistanceToTarget() { | ||
return SwerveDrive.getInstance().getPose().getTranslation().getDistance(getAmpCornerPose()); | ||
} | ||
} |
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
Oops, something went wrong.