Skip to content

Commit

Permalink
Rename get speeds so it's clear they're robot relative speeds
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryNessCTR committed Oct 26, 2023
1 parent 8f7cdfc commit c75d7f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private void configurePathPlanner() {
AutoBuilder.configureHolonomic(
()->this.getState().Pose, // Supplier of current robot pose
this::seedFieldRelative, // Consumer for seeding pose against auto
this::getCurrentSpeeds,
this::getCurrentRobotChassisSpeeds,
(speeds)->this.setControl(autoRequest.withSpeeds(speeds)), // Consumer of ChassisSpeeds to drive the robot
new HolonomicPathFollowerConfig(new PIDConstants(10, 0, 0),
new PIDConstants(10, 0, 0),
Expand Down Expand Up @@ -79,7 +79,7 @@ public void seedFieldRelative(Pose2d location) {
}
}

public ChassisSpeeds getCurrentSpeeds() {
public ChassisSpeeds getCurrentRobotChassisSpeeds() {
return m_kinematics.toChassisSpeeds(getState().ModuleStates);
}
}

0 comments on commit c75d7f9

Please sign in to comment.