Skip to content

Commit

Permalink
Let triplets accept a pari in their constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
PatribotsProgramming committed Jan 26, 2024
1 parent e97f18d commit f042f6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/util/SpeedAngleTriplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public SpeedAngleTriplet(Double leftSpeed, Double rightSpeed, Double angle) {
super(new Pair<Double, Double>(leftSpeed, rightSpeed), angle);
}

public SpeedAngleTriplet(Pair<Double, Double> speeds, Double angle) {
super(speeds, angle);
}

public SpeedAngleTriplet() {
super(new Pair<Double, Double>(0.0, 0.0), 0.0);
}
Expand Down

0 comments on commit f042f6d

Please sign in to comment.