Skip to content

Commit

Permalink
pid.
Browse files Browse the repository at this point in the history
  • Loading branch information
NottheIRS committed Feb 25, 2024
1 parent 88f1b5b commit eee2144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/cpp/WPISwerveDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ void WPISwerveDrive::Configure(SwerveConfig &config){
[this](){return GetRobotRelativeSpeeds(); },
[this](frc::ChassisSpeeds speeds) {Drive(speeds);},
pathplanner::HolonomicPathFollowerConfig( // HolonomicPathFollowerConfig, this should likely live in your Constants class
pathplanner::PIDConstants(1.0, 0.0, 0.0), // Translation PID constants
pathplanner::PIDConstants(1.0, 0.0, 0.0), // Rotation PID constants
pathplanner::PIDConstants(1.5, 0.0, 0.0), // Translation PID constants
pathplanner::PIDConstants(1.5, 0.0, 0.0), // Rotation PID constants
4.5_mps, // Max module speed, in m/s
0.4_m, // Drive base radius in meters. Distance from robot center to furthest module.
pathplanner::ReplanningConfig() // Default path replanning config. See the API for the options here
Expand Down

0 comments on commit eee2144

Please sign in to comment.