Skip to content

Commit

Permalink
Workshop 12/14
Browse files Browse the repository at this point in the history
  • Loading branch information
ControlsNarwhal committed Dec 15, 2023
1 parent efa9f17 commit f9983c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/main/java/frc/team3128/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,13 @@ public static Rotation2d flipRotation(Rotation2d rotation) {

public static class WristConstants {

public static final double kP = 0.4;
public static final double kP = 0.6;//0.4;
public static final double kI = 0;
public static final double kD = 0;

public static final double kS = 0.19;
public static final double kS = 0.21;//0.19;
public static final double kV = 0;
public static final double kG = 0.2;
public static final double kG = 0.33;//0.2;

public static final double GEAR_RATIO = 76.235; //72,3

Expand Down Expand Up @@ -377,7 +377,7 @@ public static class ElevatorConstants {
public static final int ELV1_ID = 11;
public static final int ELV2_ID = 12;

public static final double kP = 1;
public static final double kP = 2.4;
public static final double kI = 0;
public static final double kD = 0;

Expand Down
6 changes: 4 additions & 2 deletions src/main/java/frc/team3128/subsystems/Leds.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ public void setElevatorLeds(Colors color) {
m_candle.animate(new SingleFadeAnimation(color.r, color.g, color.b,LedConstants.WHITE_VALUE,LedConstants.HOLDING_SPEED,LedConstants.PIVOT_COUNT),0);
break;
default :
resetAnimationSlot(2);
m_candle.setLEDs(color.r,color.g,color.b,LedConstants.WHITE_VALUE,LedConstants.STARTING_ID,LedConstants.PIVOT_COUNT);
m_candle.animate(new RainbowAnimation(LedConstants.RainbowAnimation.BRIGHTNESS,LedConstants.RainbowAnimation.SPEED,LedConstants.PIVOT_COUNT_FRONT,false,LedConstants.STARTING_ID),0);
m_candle.animate(new RainbowAnimation(LedConstants.RainbowAnimation.BRIGHTNESS,LedConstants.RainbowAnimation.SPEED,LedConstants.PIVOT_COUNT_BACK,true,LedConstants.STARTING_ID+LedConstants.PIVOT_COUNT_FRONT),1);
// resetAnimationSlot(2);
// m_candle.setLEDs(color.r,color.g,color.b,LedConstants.WHITE_VALUE,LedConstants.STARTING_ID,LedConstants.PIVOT_COUNT);
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/team3128/subsystems/Manipulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Manipulator(){
}
private void configMotor(){
m_roller = new NAR_TalonSRX(ROLLER_MOTOR_ID);
m_roller.setInverted(false);
m_roller.setInverted(true);
m_roller.setNeutralMode(NeutralMode.Brake);
}

Expand Down

0 comments on commit f9983c6

Please sign in to comment.