Skip to content

Commit

Permalink
Power maagement tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
robo7660 committed Apr 6, 2024
1 parent 69064fa commit 367c611
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"angle": 16.8
},
"currentLimit": {
"drive": 120,
"drive": 105,
"angle": 40
},
"rampRate": {
Expand Down
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 @@ -23,8 +23,8 @@ public final class Constants {
public static final boolean kLeftBackDriveInverted = false;
public static final boolean kRightBackDriveInverted = false;
public static final boolean kRightFrontDriveInverted = false;
public static final int driveStatorCurrentLimit = 120;
public static final int driveSupplyCurrentLimit = 120;
public static final int driveStatorCurrentLimit = 110;
public static final int driveSupplyCurrentLimit = 105;

public static final double LOOP_TIME = 0.13;
public static final double ROBOT_MASS = 115 * 0.453592;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public RobotContainer() {
private void configureBindings() {

JoystickButton leftBumper = new JoystickButton(driver, XboxController.Button.kLeftBumper.value);
leftBumper.toggleOnTrue(new IntakeAndIndex(m_intake, m_index, m_transfer));
leftBumper.whileTrue(new IntakeAndIndex(m_intake, m_index, m_transfer));

JoystickButton rb = new JoystickButton(driver, XboxController.Button.kRightBumper.value);
rb.whileTrue(new LaunchWithVelo(m_launch, m_index, -1400, false));
Expand Down

0 comments on commit 367c611

Please sign in to comment.