Skip to content

Commit

Permalink
Tuned Swerve PIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Superbro525Alt committed Aug 22, 2023
1 parent e3c96fb commit 2442452
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/main/cpp/Robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ void Robot::TeleopPeriodic() {
if (map.controllers.test.GetBButtonPressed()){
swerve->GetActiveBehaviour()->Interrupt();
}

if (map.controllers.test.GetAButtonPressed()){
swerve->SetIndividualTuning(1, 270_deg, 0_m/1_s);
}
}


Expand Down
8 changes: 4 additions & 4 deletions src/main/include/RobotMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ struct RobotMap {
// Setting the PID path and values to be used for SwerveDrive and SwerveModules
wom::SwerveModule::angle_pid_conf_t anglePID {
"/drivetrain/pid/angle/config",
14_V / 180_deg,
13.2_V / 180_deg,
0.0_V / (100_deg * 1_s),
0_V / (100_deg / 1_s),
1_deg,
0.5_deg / 2_s
0_V / (100_deg / 1_s)
//1_deg,
//0.5_deg / 2_s
};
wom::SwerveModule::velocity_pid_conf_t velocityPID{
"/drivetrain/pid/velocity/config",
Expand Down

0 comments on commit 2442452

Please sign in to comment.