Skip to content

Commit

Permalink
Remove start delay from diff drive FF command
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Dec 20, 2024
1 parent 2498207 commit 7141472
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

public class DriveCommands {
private static final double DEADBAND = 0.1;
private static final double FF_START_DELAY = 2.0; // Secs
private static final double FF_RAMP_RATE = 0.1; // Volts/Sec

private DriveCommands() {}
Expand Down Expand Up @@ -68,19 +67,9 @@ public static Command feedforwardCharacterization(Drive drive) {
() -> {
velocitySamples.clear();
voltageSamples.clear();
timer.restart();
}),

// Allow modules to orient
Commands.run(
() -> {
drive.runOpenLoop(0.0, 0.0);
},
drive)
.withTimeout(FF_START_DELAY),

// Start timer
Commands.runOnce(timer::restart),

// Accelerate and gather data
Commands.run(
() -> {
Expand Down

0 comments on commit 7141472

Please sign in to comment.