Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Jan 20, 2024
1 parent 54dc0e3 commit 1fafbcc
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .pathplanner/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"defaultMaxAngVel": 540.0,
"defaultMaxAngAccel": 720.0,
"maxModuleSpeed": 2.88
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
},
"folder": null,
"choreoAuto": false
}
}
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/autos/New Auto.auto
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
},
"folder": null,
"choreoAuto": false
}
}
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/Test Path.path
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@
"folder": null,
"previewStartingState": null,
"useDefaultConstraints": false
}
}
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 @@ -44,8 +44,8 @@ public static class Speeds {

public static final double SWERVE_DRIVE_MAX_SPEED = 4.67; // TODO: Get this value
public static final double SWERVE_DRIVE_MAX_ANGULAR_SPEED = Math.PI * 1; // Todo: Get this value
public static final double SHOOTER_MAX_SPEED = 1;

public static final double SHOOTER_MAX_SPEED = 1;
}

public static class Physical {
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/frc/robot/subsystems/ElevatorSubsystem.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Team 334 */
/* Copyright (c) 2024 Team 334. All Rights Reserved. */

package frc.robot.subsystems;

Expand Down
5 changes: 2 additions & 3 deletions src/main/java/frc/robot/subsystems/IntakeSubsystem.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
/* Team 334 */
/* Copyright (c) 2024 Team 334. All Rights Reserved. */

package frc.robot.subsystems;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/ShooterSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class ShooterSubsystem extends SubsystemBase {

private final RelativeEncoder _leftEncoder = _leftMotor.getEncoder();

private final PIDController _shooterController = new PIDController(Constants.Physical.SHOOTER_PID_KP, 0, 0);
private final PIDController _shooterController = new PIDController(Constants.Physical.SHOOTER_PID_KP, 0, 0);


/** Creates a new ShooterSubsystem. */
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/frc/robot/utils/NeoConfig.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
/* Team 334 */
/* Copyright (c) 2024 Team 334. All Rights Reserved. */

package frc.robot.utils;

import com.revrobotics.CANSparkMax;
import com.revrobotics.CANSparkBase.IdleMode;
import com.revrobotics.CANSparkBase.SoftLimitDirection;


/**
/**
* @author Ze Rui Zheng
* @author Elvis Osmanov
*/
public class NeoConfig {
public static void configureNeo(CANSparkMax neo, boolean invert) {

neo.setIdleMode(IdleMode.kCoast);
neo.enableSoftLimit(SoftLimitDirection.kForward, false);
neo.enableSoftLimit(SoftLimitDirection.kReverse, false);
Expand Down

0 comments on commit 1fafbcc

Please sign in to comment.