Skip to content

Commit

Permalink
Very small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
TimnJoey authored and bot190 committed Jan 3, 2024
1 parent fc360c5 commit 9a59f5c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
24 changes: 0 additions & 24 deletions src/main/deploy/pathplanner/autos/New Auto.auto

This file was deleted.

4 changes: 0 additions & 4 deletions src/main/java/frc/robot/maps/subsystems/SwerveDriveMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public class SwerveModuleData {
public double[] steeringTempC;
public SwerveModuleState desiredState = new SwerveModuleState();
public double steeringSetpoint;
public ChassisSpeeds speeds;

public SwerveModuleData(String name) {
this.name = name;
Expand All @@ -96,7 +95,6 @@ public void toLog(LogTable table) {
subTable.put("SteeringTempCelsius", this.steeringTempC);

subTable.put("SteeringSetpoint", this.steeringSetpoint);
// subTable.put("ChassisSpeeds", this.speeds);

}

Expand All @@ -118,7 +116,6 @@ public void fromLog(LogTable table) {
this.steeringCurrentAmps = subTable.get("SteeringCurrentAmps", this.steeringCurrentAmps);
this.steeringTempC = subTable.get("SteeringTempCelsius", this.steeringTempC);
this.steeringSetpoint = subTable.get("SteeringSetpoint", this.steeringSetpoint);
// this.speeds = subTable.get("ChassisSpeeds", this.speeds);
}

public void update(SwerveModule module) {
Expand All @@ -131,7 +128,6 @@ public void update(SwerveModule module) {
this.steeringTempC = module.getSteeringMotor().getTemperatureC();
module.setDesiredState(this.desiredState);
this.steeringSetpoint = module.getSteeringMotor().get();
// this.speeds = module.ChassisSpeeds.get();
}

public SwerveModuleState getModuleStates() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public Drive(SwerveDriveMap map) {
// Constants class
new PIDConstants(0.2, 0.0, 0.05), // Translation PID constants (OFF_AXIS)
new PIDConstants(0.001, 0.0, 0.0), // Rotation PID constants (OFF_AXIS)
4.5, // Max module speed, in m/s
2.0, // Max module speed, in m/s
0.381, // Drive base radius (OFF_AXIS) in meters. Distance from robot center to
// furthest module.
new ReplanningConfig() // Default path replanning config. See the API for the options here
Expand Down

0 comments on commit 9a59f5c

Please sign in to comment.