Skip to content

Commit ded7c87

Browse files
authored
[wpimath] Remove units from trapezoid profile classes (#7276)
1 parent 2acf111 commit ded7c87

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

wpimath/src/main/java/edu/wpi/first/math/trajectory/TrapezoidProfile.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66

77
import edu.wpi.first.math.MathSharedStore;
88
import edu.wpi.first.math.MathUsageId;
9-
import edu.wpi.first.units.Measure;
10-
import edu.wpi.first.units.PerUnit;
11-
import edu.wpi.first.units.TimeUnit;
12-
import edu.wpi.first.units.Unit;
139
import java.util.Objects;
1410

1511
/**
@@ -72,20 +68,6 @@ public Constraints(double maxVelocity, double maxAcceleration) {
7268
this.maxAcceleration = maxAcceleration;
7369
MathSharedStore.reportUsage(MathUsageId.kTrajectory_TrapezoidProfile, 1);
7470
}
75-
76-
/**
77-
* Constructs constraints for a TrapezoidProfile.
78-
*
79-
* @param <U> Unit type.
80-
* @param maxVelocity maximum velocity
81-
* @param maxAcceleration maximum acceleration
82-
*/
83-
public <U extends Unit> Constraints(
84-
Measure<? extends PerUnit<? extends U, TimeUnit>> maxVelocity,
85-
Measure<? extends PerUnit<? extends PerUnit<? extends U, TimeUnit>, TimeUnit>>
86-
maxAcceleration) {
87-
this(maxVelocity.baseUnitMagnitude(), maxAcceleration.baseUnitMagnitude());
88-
}
8971
}
9072

9173
/** Profile state. */
@@ -110,18 +92,6 @@ public State(double position, double velocity) {
11092
this.velocity = velocity;
11193
}
11294

113-
/**
114-
* Constructs constraints for a Trapezoid Profile.
115-
*
116-
* @param <U> Unit type.
117-
* @param position The position at this state.
118-
* @param velocity The velocity at this state.
119-
*/
120-
public <U extends Unit> State(
121-
Measure<U> position, Measure<? extends PerUnit<? extends U, TimeUnit>> velocity) {
122-
this(position.baseUnitMagnitude(), velocity.baseUnitMagnitude());
123-
}
124-
12595
@Override
12696
public boolean equals(Object other) {
12797
return other instanceof State rhs

0 commit comments

Comments
 (0)