@@ -30,7 +30,7 @@ public class EndEffectorSubsystem extends SubsystemBase {
3030 private double targetRotation = 0 ;
3131 private double effectorOutput = 0 ;
3232
33- private double m_output ;
33+ private double m_pivotOutput ;
3434
3535 private final Interlocks m_interlocks ;
3636
@@ -95,14 +95,14 @@ public void periodic() {
9595 SmartDashboard .putBoolean ("Is Holding" , isHolding ());
9696 SmartDashboard .putNumber ("Pivot Angle 2" , getPivotPosition ());
9797 SmartDashboard .putNumber ("raw rotations" , m_pivotMotor .getAbsoluteEncoder ().getPosition () / Math .PI / 2.0 );
98- SmartDashboard .putNumber ("Pivot Output" , m_output );
98+ SmartDashboard .putNumber ("Pivot Output" , m_pivotOutput );
9999 SmartDashboard .putNumber ("Pivot Setpoint" , m_PIDController .getSetpoint ());
100100 SmartDashboard .putString ("Intake state" , m_intakeState .toString ());
101101 }
102102
103103 public void fastPeriodic () {
104- m_output = -m_PIDController .calculate (getPivotPosition (), targetRotation + m_aggressiveComponent );
105- m_output = m_speedOverride != 0 ? m_speedOverride : m_output ;
104+ m_pivotOutput = -m_PIDController .calculate (getPivotPosition (), targetRotation + m_aggressiveComponent );
105+ m_pivotOutput = m_speedOverride != 0 ? m_speedOverride : m_pivotOutput ;
106106
107107 switch (m_intakeState ) {
108108 case IntakeCoral :
@@ -134,7 +134,7 @@ public void fastPeriodic() {
134134 break ;
135135 }
136136
137- m_pivotMotor .set (m_interlocks .clampPivotMotorSet (m_output ));
137+ m_pivotMotor .set (m_interlocks .clampPivotMotorSet (m_pivotOutput ));
138138 m_effectorMotor .set (effectorOutput );
139139 }
140140
0 commit comments