Skip to content

Commit

Permalink
fix auto
Browse files Browse the repository at this point in the history
tank drive default

armshoulder brakes now

--Gabe
  • Loading branch information
willitcode committed Oct 28, 2023
1 parent c1444ca commit edaa485
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
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 @@ -132,7 +132,7 @@ public RobotContainer() {
SmartDashboard.putData("Choose auto", autoChooser);

compilationArm.setDefaultCommand(manualArm);
driveSubsystem.setDefaultCommand(driveRO);
driveSubsystem.setDefaultCommand(driveFO);
}

public Pose containerGetArmPose() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/DriveForwards.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void initialize() {}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
drivetrain.moveTank(0.5, 0.5);
drivetrain.moveTank(0.8, 0.8);
}

// Called once the command ends or is interrupted.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/DriveReverse.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void initialize() {}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
drivetrain.moveTank(-0.5, -0.5);
drivetrain.moveTank(-0.8, -0.8);
}

// Called once the command ends or is interrupted.
Expand Down
1 change: 1 addition & 0 deletions src/main/java/frc/robot/subsystems/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ public void periodic() {
>= 1)
&& (Math.abs(
limelight.getBotpose2d().getY() - whereTheHeckAreWe.getEstimatedPosition().getY())
// nice
>= 1)) {
whereTheHeckAreWe.addVisionMeasurement(limelight.getBotpose2d(), Timer.getFPGATimestamp());
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/subsystems/arm/ArmShoulder.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import com.ctre.phoenix.motorcontrol.ControlMode;
import com.ctre.phoenix.motorcontrol.FeedbackDevice;
import com.ctre.phoenix.motorcontrol.NeutralMode;
import com.ctre.phoenix.motorcontrol.SensorCollection;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
import edu.wpi.first.wpilibj.DriverStation;
Expand Down Expand Up @@ -45,6 +46,7 @@ private WPI_TalonSRX configTalon(int id) {
talon.configClearPositionOnLimitR(Constants.Arm.AUTO_ZERO_REVERSE_LIMIT_SHOULDER, 0);
talon.setSensorPhase(Constants.Arm.INVERTED_TALON_SENSOR_ARM_SHOULDER);
talon.setInverted(Constants.Arm.INVERTED_TALON_ARM_SHOULDER);
talon.setNeutralMode(NeutralMode.Brake);
talon.config_kP(0, Constants.Arm.ShoulderPID.kP);
talon.config_kI(0, Constants.Arm.ShoulderPID.kI);
talon.config_kD(0, Constants.Arm.ShoulderPID.kD);
Expand Down

0 comments on commit edaa485

Please sign in to comment.