Skip to content

Commit

Permalink
Revert "PID testing"
Browse files Browse the repository at this point in the history
This reverts commit e3dd816.
  • Loading branch information
Dylan-Powers committed Jan 21, 2023
1 parent e8d3302 commit ef5f070
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 137 deletions.
124 changes: 0 additions & 124 deletions src/main/deploy/pathplanner/Demo path.path

This file was deleted.

8 changes: 4 additions & 4 deletions src/main/deploy/pathplanner/Spinny Path.path
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
},
{
"anchorPoint": {
"x": 3.7432,
"y": 3.0
"x": 4.332476234319839,
"y": 3.0994094840575923
},
"prevControl": {
"x": 2.843613612587797,
"y": 3.0
"x": 3.4696525774849554,
"y": 3.0626935837667473
},
"nextControl": null,
"holonomicAngle": 0.0,
Expand Down

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
import edu.wpi.first.wpilibj.Timer;
//import frc.lib.util.AbsoluteEncoder;

/**
Expand Down Expand Up @@ -113,8 +112,8 @@ public void teleopInit() {
}


/*Reset Absolute */
m_robotContainer.resetAbsolute();
/*Reset Absolute */
m_robotContainer.resetAbsolute();



Expand Down
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/subsystems/Swerve.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ public Command followTrajectoryCommand(PathPlannerTrajectory traj, boolean isFir
traj,
this::getPose, // Pose supplier
Constants.Swerve.swerveKinematics, // SwerveDriveKinematics
new PIDController(1, 0, 0), // X controller. Tune these values for your robot. Leaving them 0 will only use feedforwards.
new PIDController(1, 0, 0), // Y controller (usually the same values as X controller)
new PIDController(5, 0, 0), // Rotation controller. Tune these values for your robot. Leaving them 0 will only use feedforwards.
new PIDController(0, 0, 0), // X controller. Tune these values for your robot. Leaving them 0 will only use feedforwards.
new PIDController(0, 0, 0), // Y controller (usually the same values as X controller)
new PIDController(0, 0, 0), // Rotation controller. Tune these values for your robot. Leaving them 0 will only use feedforwards.
this::setModuleStates, // Module states consumer
this // Requires this drive subsystem
)
Expand Down

0 comments on commit ef5f070

Please sign in to comment.