Skip to content

Commit

Permalink
more elevator and updated drive constants
Browse files Browse the repository at this point in the history
(cherry picked from commit 2b1f571)
  • Loading branch information
TylerSeiford committed Feb 4, 2025
1 parent cfef6f7 commit 5c41766
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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 @@ -17,7 +17,6 @@
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;
Expand Down
10 changes: 6 additions & 4 deletions src/main/java/frc/robot/subsystems/drive/DriveConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,23 @@ public class DriveConstants {
};

// Zeroed rotation values for each module, see setup instructions
public static final Rotation2d frontLeftZeroRotation = new Rotation2d(0.0);
public static final Rotation2d frontRightZeroRotation = new Rotation2d(0.0);
public static final Rotation2d backLeftZeroRotation = new Rotation2d(0.0);
public static final Rotation2d backRightZeroRotation = new Rotation2d(0.0);
public static final Rotation2d frontLeftZeroRotation = Rotation2d.fromDegrees(-90.0);
public static final Rotation2d frontRightZeroRotation = Rotation2d.fromDegrees(0.0);
public static final Rotation2d backLeftZeroRotation = Rotation2d.fromDegrees(180.0);
public static final Rotation2d backRightZeroRotation = Rotation2d.fromDegrees(90.0);

// Device CAN IDs
public static final int gyroCanId = 9;

public static final int frontLeftDriveCanId = 1;
public static final int backLeftDriveCanId = 5;

public static final int frontRightDriveCanId = 3;
public static final int backRightDriveCanId = 7;

public static final int frontLeftTurnCanId = 2;
public static final int backLeftTurnCanId = 6;

public static final int frontRightTurnCanId = 4;
public static final int backRightTurnCanId = 8;

Expand Down

0 comments on commit 5c41766

Please sign in to comment.