Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 17, 2024
1 parent 9e18f09 commit 69283b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,10 @@ frc2::CommandPtr DriveSubsystem::DynamicProfiledDriveDistance(
// profile needs to look 20 milliseconds ahead for the next
// setpoint
auto leftSetpoint = profile.Calculate(
timer.Get(),
{m_initialLeftDistance, 0_mps},
timer.Get(), {m_initialLeftDistance, 0_mps},
{m_initialLeftDistance + distance, 0_mps});
auto rightSetpoint = profile.Calculate(
timer.Get(),
{m_initialRightDistance, 0_mps},
timer.Get(), {m_initialRightDistance, 0_mps},
{m_initialRightDistance + distance, 0_mps});
SetDriveStates(leftSetpoint, rightSetpoint);
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public Command dynamicProfiledDriveDistance(double distance) {
new TrapezoidProfile.Constraints(
DriveConstants.kMaxSpeedMetersPerSecond,
DriveConstants.kMaxAccelerationMetersPerSecondSquared));
var timer = new Timer();
var timer = new Timer();
return startRun(
() -> {
// Restart timer so profile setpoints start at the beginning
Expand Down

0 comments on commit 69283b1

Please sign in to comment.