Skip to content

Mechanisms #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/**
* the purpose of this class is too supply different utility functions for functionality
* that depends on the robot alliance.
*
* @author Shai Grossman
*/
public class AllianceUtils {
Expand All @@ -43,6 +44,7 @@ public static boolean isRedAlliance() {

/**
* Converts a pose to the pose relative to the current driver station alliance.
*
* @param bluePose the current blue alliance pose
* @return the converted Pose2d pose
*/
Expand All @@ -69,15 +71,15 @@ public static Pose2d mirrorAlliance(Pose2d pose) {
public static class AlliancePose {
private Pose2d pose;

public AlliancePose(double x, double y, double degrees){
public AlliancePose(double x, double y, double degrees) {
this.pose = new Pose2d(x, y, Rotation2d.fromDegrees(degrees));
}

public AlliancePose(Translation2d translation, Rotation2d rotation) {
this.pose = new Pose2d(translation, rotation);
}

public AlliancePose(double degrees){
public AlliancePose(double degrees) {
this.pose = new Pose2d(0, 0, Rotation2d.fromDegrees(degrees));
}

Expand Down
52 changes: 0 additions & 52 deletions src/main/java/frc/excalib/additional_utilities/Color.java

This file was deleted.

Loading