Skip to content

Commit

Permalink
spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
audreypj committed Jan 12, 2024
1 parent aeb7357 commit 80d6e71
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import frc.util.ControllerUtil;
import frc.util.Layer;
import frc.util.MacUtil;
import frc.util.SharedReference;
import frc.util.Util;
import java.util.Map;
import java.util.Optional;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/frc/robot/autonomous/TrajectoryFollower.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.trajectory.Trajectory;
import frc.robot.Constants.Config;
import java.util.Optional;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/DrivebaseSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public DrivebaseSubsystem(VisionSubsystem visionSubsystem) {

var alliance = DriverStation.getAlliance();
if (alliance.isPresent()) {
return alliance.get() == DriverStation.Alliance.Red;
return alliance.get() == DriverStation.Alliance.Red;
}
return false;
},
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/frc/util/AdvancedSwerveTrajectoryFollower.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
import edu.wpi.first.math.controller.PIDController;
import edu.wpi.first.math.controller.ProfiledPIDController;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.kinematics.ChassisSpeeds;
import edu.wpi.first.math.trajectory.Trajectory;
import frc.robot.Constants.Config;
import frc.robot.autonomous.TrajectoryFollower;

/**
Expand Down Expand Up @@ -69,7 +67,8 @@ protected ChassisSpeeds calculateDriveSignal(

// if (Config.RUN_PATHPLANNER_SERVER)
// PathPlannerServer.sendPathFollowingData(
// new Pose2d(poseRef.getTranslation(), Rotation2d.fromDegrees(targetDegrees)), currentPose);
// new Pose2d(poseRef.getTranslation(), Rotation2d.fromDegrees(targetDegrees)),
// currentPose);

// scope current and target angles
double angularDifferenceDeg = Util.relativeAngularDifference(currentDegrees, targetDegrees);
Expand Down

0 comments on commit 80d6e71

Please sign in to comment.