IntakePivot and Shooter changes to make me hate them less, other minor fixes
This commit is contained in:
@@ -40,18 +40,18 @@ public class IntakePivotConstants {
|
||||
|
||||
// YOU SHOULDN'T NEED TO CHANGE ANYTHING BELOW THIS LINE UNLESS YOU'RE ADDING A CONFIGURATION ITEM
|
||||
|
||||
public static final SparkMaxConfig leftMotorConfig = new SparkMaxConfig();
|
||||
public static final SparkMaxConfig rightMotorConfig = new SparkMaxConfig();
|
||||
public static final SparkMaxConfig KLeftMotorConfig = new SparkMaxConfig();
|
||||
public static final SparkMaxConfig kRightMotorConfig = new SparkMaxConfig();
|
||||
|
||||
static {
|
||||
leftMotorConfig
|
||||
KLeftMotorConfig
|
||||
.idleMode(kIdleMode)
|
||||
.smartCurrentLimit(kCurrentLimit)
|
||||
.inverted(kInvertMotors);
|
||||
leftMotorConfig.absoluteEncoder
|
||||
KLeftMotorConfig.absoluteEncoder
|
||||
.positionConversionFactor(kConversionFactor)
|
||||
.velocityConversionFactor(kConversionFactor / 60);
|
||||
leftMotorConfig.closedLoop
|
||||
KLeftMotorConfig.closedLoop
|
||||
.feedbackSensor(FeedbackSensor.kAbsoluteEncoder)
|
||||
.pid(kP, kI, kD)
|
||||
.outputRange(-1, 1)
|
||||
@@ -60,7 +60,7 @@ public class IntakePivotConstants {
|
||||
.feedForward
|
||||
.sva(kS, kV, kA);
|
||||
|
||||
rightMotorConfig
|
||||
kRightMotorConfig
|
||||
.idleMode(kIdleMode)
|
||||
.smartCurrentLimit(kCurrentLimit)
|
||||
.inverted(kInvertMotors)
|
||||
|
||||
@@ -28,6 +28,8 @@ public class ShooterConstants {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO Conversion factor?
|
||||
|
||||
public static final double kWheelDiameter = Units.inchesToMeters(6);
|
||||
|
||||
// TODO Real values
|
||||
|
||||
Reference in New Issue
Block a user