generated from wpilibsuite/vendor-template
-
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.
remove note finder (wont carry over) + organize into package folders
- Loading branch information
1 parent
1034de8
commit b7a4ebc
Showing
14 changed files
with
69 additions
and
270 deletions.
There are no files selected for viewing
File renamed without changes.
67 changes: 67 additions & 0 deletions
67
lib/src/main/java/coppercore/constants/FieldConstants.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,67 @@ | ||
package constants; | ||
|
||
import edu.wpi.first.math.util.Units; | ||
import edu.wpi.first.math.geometry.Pose2d; | ||
import edu.wpi.first.math.geometry.Rotation2d; | ||
import edu.wpi.first.math.geometry.Translation2d; | ||
|
||
public static final class FieldConstants { | ||
public static final double lengthM = 16.451; | ||
public static final double widthM = 8.211; | ||
|
||
public static final double midfieldLowThresholdM = 5.87; | ||
public static final double midfieldHighThresholdM = 10.72; | ||
|
||
public static final Rotation2d ampHeading = new Rotation2d(-Math.PI / 2); | ||
|
||
public static final Rotation2d blueUpHeading = Rotation2d.fromRadians(0.0); | ||
public static final Rotation2d blueDownHeading = Rotation2d.fromRadians(Math.PI); | ||
public static final Rotation2d blueLeftHeading = Rotation2d.fromRadians(Math.PI / 2.0); | ||
public static final Rotation2d blueRightHeading = Rotation2d.fromRadians(-Math.PI / 2.0); | ||
|
||
public static final Rotation2d redUpHeading = Rotation2d.fromRadians(Math.PI); | ||
public static final Rotation2d redDownHeading = Rotation2d.fromRadians(0.0); | ||
public static final Rotation2d redLeftHeading = Rotation2d.fromRadians(-Math.PI / 2.0); | ||
public static final Rotation2d redRightHeading = Rotation2d.fromRadians(Math.PI / 2.0); | ||
|
||
public static final Rotation2d redSourceHeading = | ||
new Rotation2d(Math.PI * 4 / 3); // 60 degrees | ||
public static final Rotation2d blueSourceHeading = | ||
new Rotation2d(Math.PI * 5 / 3); // 120 degrees | ||
|
||
public static final Translation2d fieldToRedSpeaker = | ||
new Translation2d(Units.inchesToMeters(652.73), Units.inchesToMeters(218.42)); | ||
|
||
public static final Translation2d fieldToBlueSpeaker = | ||
new Translation2d(Units.inchesToMeters(-1.5), Units.inchesToMeters(218.42)); | ||
|
||
public static final Pose2d robotAgainstBlueSpeaker = | ||
new Pose2d(1.39, 5.56, Rotation2d.fromDegrees(180)); | ||
|
||
public static final Pose2d robotAgainstRedSpeaker = | ||
new Pose2d(15.19, 5.56, Rotation2d.fromDegrees(0)); | ||
|
||
public static final Pose2d robotAgainstBlueSpeakerRight = | ||
new Pose2d(0.7, 4.38, Rotation2d.fromDegrees(120)); | ||
|
||
public static final Pose2d robotAgainstRedSpeakerRight = | ||
new Pose2d(15.83, 6.73, Rotation2d.fromDegrees(-60)); | ||
|
||
public static final Pose2d robotAgainstBlueSpeakerLeft = | ||
new Pose2d(0.7, 6.73, Rotation2d.fromDegrees(-120)); | ||
|
||
public static final Pose2d robotAgainstRedSpeakerLeft = | ||
new Pose2d(15.83, 4.38, Rotation2d.fromDegrees(60)); | ||
|
||
public static final Pose2d robotAgainstBluePodium = | ||
new Pose2d(2.57, 4.09, Rotation2d.fromDegrees(180)); | ||
|
||
public static final Pose2d robotAgainstRedPodium = | ||
new Pose2d(13.93, 4.09, Rotation2d.fromDegrees(0)); | ||
|
||
public static final Pose2d robotAgainstBlueAmpZone = | ||
new Pose2d(2.85, 7.68, Rotation2d.fromDegrees(-90)); | ||
|
||
public static final Pose2d robotAgainstRedAmpZone = | ||
new Pose2d(13.74, 7.68, Rotation2d.fromDegrees(-90)); | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
lib/src/main/java/org/utils/notesimulator/NoteManager.java
This file was deleted.
Oops, something went wrong.