From 57e3935b03e5711bf78a672badf98a1359d9aab0 Mon Sep 17 00:00:00 2001 From: Sam Carlberg Date: Tue, 22 Oct 2024 22:13:02 -0400 Subject: [PATCH] Remove units from trapezoid profile classes --- .../math/trajectory/TrapezoidProfile.java | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/wpimath/src/main/java/edu/wpi/first/math/trajectory/TrapezoidProfile.java b/wpimath/src/main/java/edu/wpi/first/math/trajectory/TrapezoidProfile.java index a7ead1bc9c8..448c8384cf9 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/trajectory/TrapezoidProfile.java +++ b/wpimath/src/main/java/edu/wpi/first/math/trajectory/TrapezoidProfile.java @@ -6,10 +6,6 @@ import edu.wpi.first.math.MathSharedStore; import edu.wpi.first.math.MathUsageId; -import edu.wpi.first.units.Measure; -import edu.wpi.first.units.PerUnit; -import edu.wpi.first.units.TimeUnit; -import edu.wpi.first.units.Unit; import java.util.Objects; /** @@ -72,20 +68,6 @@ public Constraints(double maxVelocity, double maxAcceleration) { this.maxAcceleration = maxAcceleration; MathSharedStore.reportUsage(MathUsageId.kTrajectory_TrapezoidProfile, 1); } - - /** - * Constructs constraints for a TrapezoidProfile. - * - * @param Unit type. - * @param maxVelocity maximum velocity - * @param maxAcceleration maximum acceleration - */ - public Constraints( - Measure> maxVelocity, - Measure, TimeUnit>> - maxAcceleration) { - this(maxVelocity.baseUnitMagnitude(), maxAcceleration.baseUnitMagnitude()); - } } /** Profile state. */ @@ -110,18 +92,6 @@ public State(double position, double velocity) { this.velocity = velocity; } - /** - * Constructs constraints for a Trapezoid Profile. - * - * @param Unit type. - * @param position The position at this state. - * @param velocity The velocity at this state. - */ - public State( - Measure position, Measure> velocity) { - this(position.baseUnitMagnitude(), velocity.baseUnitMagnitude()); - } - @Override public boolean equals(Object other) { return other instanceof State rhs