Skip to content

Commit

Permalink
Removed voltage compensations due to problems with browning out
Browse files Browse the repository at this point in the history
  • Loading branch information
24cirinom authored Feb 26, 2024
1 parent 4f85612 commit bc1880c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ public ModuleIOSparkMax(int index) {
turnSparkMax.setInverted(isTurnMotorInverted);
driveSparkMax.setSmartCurrentLimit(30);
turnSparkMax.setSmartCurrentLimit(20);
driveSparkMax.enableVoltageCompensation(12.0);
turnSparkMax.enableVoltageCompensation(12.0);


driveEncoder.setPosition(0.0);
driveEncoder.setMeasurementPeriod(10);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ public FlywheelIOSparkMax() {
topShooterMotor.setSmartCurrentLimit(30);
bottomShooterMotor.setSmartCurrentLimit(30);

topShooterMotor.enableVoltageCompensation(12.0);
topShooterMotor.setSmartCurrentLimit(30);
bottomShooterMotor.enableVoltageCompensation(12.0);
bottomShooterMotor.setSmartCurrentLimit(30);

}

@Override
Expand Down
10 changes: 1 addition & 9 deletions src/main/java/frc/robot/subsystems/intake/IntakeIOSparkMax.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,7 @@ public void setVoltage(double volts) {

@Override
public void setVelocity(double percentRun, double ffVolts) {
// intakePID.setReference(
// (6 / 458.0) * Units.radiansPerSecondToRotationsPerMinute(velocityRadPerSec) * GEAR_RATIO,
// ControlType.kPercent,
// 0,
// ffVolts,
// ArbFFUnits.kVoltage);

intakeMotor.set(
percentRun);
intakeMotor.set(percentRun);
}

@Override
Expand Down

0 comments on commit bc1880c

Please sign in to comment.