Skip to content

Commit

Permalink
Small changes to algae destage and other speed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Liammurray19 committed Jan 18, 2025
1 parent e67b175 commit da88ee7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
15 changes: 11 additions & 4 deletions src/main/java/frc/robot/maps/Alpha.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
import com.pathplanner.lib.config.PIDConstants;
import com.pathplanner.lib.config.RobotConfig;
import com.pathplanner.lib.controllers.PPHolonomicDriveController;

import com.revrobotics.spark.SparkBase.PersistMode;
import com.revrobotics.spark.SparkBase.ResetMode;
import com.revrobotics.spark.SparkLowLevel.PeriodicFrame;
import com.revrobotics.spark.config.SparkMaxConfig;

Expand Down Expand Up @@ -118,17 +121,21 @@ public SwerveDriveMap getDriveMap() {

@Override
public AlgaeDestageMap getAlgaeDestageMap() {
CSSparkMax motor = new CSSparkMax(9);
return new AlgaeDestageMap(motor);
// CSSparkMax motor = new CSSparkMax(9);
// SparkMaxConfig config = new SparkMaxConfig();
// config.smartCurrentLimit(30);
// motor.getMotorController().configure(config,
// ResetMode.kNoResetSafeParameters, PersistMode.kPersistParameters);
return new AlgaeDestageMap();
}

@Override
public OuttakeMap getOuttakeMap() {
CSSparkMax leftWheels = new CSSparkMax(10);
CSSparkMax rightWheels = new CSSparkMax(11);
// rightWheels.setInverted(true);
rightWheels.setInverted(false);
CSDigitalInput sensor = new CSDigitalInput(9); // same channel as last year dont know if its right
CSDigitalInput sensor = new CSDigitalInput(9); // same channel as last year
// dont know if its right
return new OuttakeMap(leftWheels, rightWheels, sensor::get);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/AlgaeDestage.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public class AlgaeDestage extends LoggedSubsystem<Data, AlgaeDestageMap> {

public static double DESTAGE_SPEED = 1.0;
public static double DESTAGE_SPEED = -0.5;

public AlgaeDestage(AlgaeDestageMap algaeDestageMap) {
super(new Data(), algaeDestageMap);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Outtake.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Outtake extends LoggedSubsystem<Data, OuttakeMap> {

private final double RELEASE_SPEEDRIGHT = 0.3;
private final double RELEASE_SPEEDLEFT = 0.1;
private final double INTAKE_SPEED = 0.2;
private final double INTAKE_SPEED = 0.3;
private final double RELEASE_DELAY = 1;
private final double DELAY = 0.0;

Expand Down

0 comments on commit da88ee7

Please sign in to comment.