6
6
7
7
import edu .wpi .first .math .MathSharedStore ;
8
8
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 ;
13
9
import java .util .Objects ;
14
10
15
11
/**
@@ -72,20 +68,6 @@ public Constraints(double maxVelocity, double maxAcceleration) {
72
68
this .maxAcceleration = maxAcceleration ;
73
69
MathSharedStore .reportUsage (MathUsageId .kTrajectory_TrapezoidProfile , 1 );
74
70
}
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
- }
89
71
}
90
72
91
73
/** Profile state. */
@@ -110,18 +92,6 @@ public State(double position, double velocity) {
110
92
this .velocity = velocity ;
111
93
}
112
94
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
-
125
95
@ Override
126
96
public boolean equals (Object other ) {
127
97
return other instanceof State rhs
0 commit comments