mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[wpimath] Refactor TrapezoidProfile API (#5457)
This commit is contained in:
@@ -17,13 +17,13 @@ public class ReplaceMeTrapezoidProfileCommand extends TrapezoidProfileCommand {
|
||||
// The motion profile to be executed
|
||||
new TrapezoidProfile(
|
||||
// The motion profile constraints
|
||||
new TrapezoidProfile.Constraints(0, 0),
|
||||
// Goal state
|
||||
new TrapezoidProfile.State(),
|
||||
// Initial state
|
||||
new TrapezoidProfile.State()),
|
||||
new TrapezoidProfile.Constraints(0, 0)),
|
||||
state -> {
|
||||
// Use current trajectory state here
|
||||
});
|
||||
},
|
||||
// Goal state
|
||||
() -> new TrapezoidProfile.State(),
|
||||
// Current state
|
||||
() -> new TrapezoidProfile.State());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user