mirror of
https://github.com/Team4388/2024AcrossTheRidgebotiverse.git
synced 2026-06-09 08:48:03 -06:00
Code clean up, compleatly remove phoenix5
This commit is contained in:
@@ -4,16 +4,6 @@
|
||||
|
||||
package frc4388.robot.subsystems;
|
||||
|
||||
// import javax.swing.text.StyleContext.SmallAttributeSet;
|
||||
|
||||
// import com.ctre.phoenix.ErrorCode;
|
||||
import com.ctre.phoenix.motorcontrol.FeedbackDevice;
|
||||
import com.ctre.phoenix.motorcontrol.RemoteSensorSource;
|
||||
// import com.ctre.phoenix.motorcontrol.TalonFXControlMode;
|
||||
// import com.ctre.phoenix.motorcontrol.can.TalonFXConfiguration;
|
||||
// import com.ctre.phoenix.motorcontrol.can.WPI_TalonFX;
|
||||
// import com.ctre.phoenix.sensors.CANCoder;
|
||||
// import com.ctre.phoenix.sensors.SensorInitializationStrategy;
|
||||
import com.ctre.phoenix6.StatusSignal;
|
||||
import com.ctre.phoenix6.Utils;
|
||||
import com.ctre.phoenix6.configs.CANcoderConfiguration;
|
||||
@@ -43,7 +33,6 @@ import edu.wpi.first.math.util.Units;
|
||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||
import frc4388.robot.Constants.SwerveDriveConstants;
|
||||
import frc4388.utility.Gains;
|
||||
// import frc4388.utility.configurable.ConfigurableDouble;
|
||||
|
||||
public class SwerveModule extends SubsystemBase {
|
||||
private TalonFX driveMotor;
|
||||
@@ -76,9 +65,9 @@ public class SwerveModule extends SubsystemBase {
|
||||
.withDutyCycleNeutralDeadband(SwerveDriveConstants.Configurations.NEUTRAL_DEADBAND)
|
||||
).withCurrentLimits(
|
||||
new CurrentLimitsConfigs()
|
||||
.withStatorCurrentLimit(110)
|
||||
.withStatorCurrentLimit(100)
|
||||
.withStatorCurrentLimitEnable(true)
|
||||
.withSupplyCurrentLimit(110)
|
||||
.withSupplyCurrentLimit(100)
|
||||
.withSupplyCurrentLimitEnable(true)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user