Skip to content

Commit

Permalink
tuned, not tested
Browse files Browse the repository at this point in the history
  • Loading branch information
penguin212 committed May 2, 2023
1 parent 769bac7 commit 44ea5e6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Binary file added FRC_TBD_2e1222392fcc8c02.wpilog
Binary file not shown.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public static final class TankConstants {
public static final class SwerveConstants {
public static final double TL_OFFSET_RADS = IS_R1
? -2.9255307594961444 // 0.21606189409364873
: -2.4960072914785663;
: -1.7595665454864502;//1.382026108103343;
public static final double TR_OFFSET_RADS = IS_R1
? -1.1199431538621365 // 2.0216494997276566
: -0.3756485104600369; //2.7659441431297562;
: -0.3700309236857553;// 2.771561729904038;
public static final double BL_OFFSET_RADS = IS_R1
? -2.374440566697393
: -0.0563106973979135 ; //3.0852819561918796
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ public RobotContainer() {

signalLEDSubsystem = new LEDSubsystem();

// driveSubsystem = new MissileShellSwerveSubsystem();
driveSubsystem = new SwerveSubsystem(photonWrapper, signalLEDSubsystem);
driveSubsystem = new MissileShellSwerveSubsystem();
// driveSubsystem = new SwerveSubsystem(photonWrapper, signalLEDSubsystem);
rollerSubsystem = new RollerSubsystem();
tiltedElevatorSubsystem = new TiltedElevatorSubsystem();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public boolean approachShelf() {
*/
private double getDriveScaling() {
boolean isSlowMode = leftJoystick.getTrigger();
return isSlowMode ? 0.24 : 1.0;
return isSlowMode ? 0.3 : 1.0;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public class MissileShellSwerveSubsystem extends BaseDrivetrain {
};

public MissileShellSwerveSubsystem() {
module = new SwerveModule.BottomLeft(
SwerveConstants.BL_DRIVE,
SwerveConstants.BL_STEER,
SwerveConstants.BL_OFFSET_RADS
module = new SwerveModule.TopRight(
SwerveConstants.TR_DRIVE,
SwerveConstants.TR_STEER,
SwerveConstants.TR_OFFSET_RADS
);

// module.setSteerRelativeFeedback(true);
Expand Down

0 comments on commit 44ea5e6

Please sign in to comment.