This commit is contained in:
ryan123rudder
2020-02-22 15:03:10 -07:00
parent 4888a4c08d
commit 881c3d9076
9 changed files with 23 additions and 73 deletions
@@ -127,10 +127,10 @@ public class Shooter extends SubsystemBase {
runSpeed = runSpeed/targetVel; //Convert to percent
if (actualVel < targetVel - 1000){ //PID Based on ramp up amount
m_shooterFalcon.set(TalonFXControlMode.PercentOutput, runSpeed);
m_shooterFalcon.set(TalonFXControlMode.PercentOutput, runSpeed/3);
}
else{ //PID Based on targetVel
m_shooterFalcon.set(TalonFXControlMode.Velocity, targetVel); //Init PID
m_shooterFalcon.set(TalonFXControlMode.Velocity, targetVel/3); //Init PID
}
}