mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 08:48:01 -06:00
Runup
This commit is contained in:
@@ -79,11 +79,10 @@ public class Shooter extends SubsystemBase {
|
||||
*/
|
||||
public void runDrumShooterVelocityPID(double targetVel, double actualVel) {
|
||||
velP = actualVel/targetVel;
|
||||
if(velP < 0.1){
|
||||
velP = 0.1;
|
||||
}
|
||||
double runSpeed = velP*(1-velP);
|
||||
//System.err.println(runSpeed);
|
||||
m_shooterFalcon.set(TalonFXControlMode.PercentOutput, runSpeed/*ShooterConstants.ENCODER_TICKS_PER_REV/600*/);
|
||||
double runSpeed = actualVel + (20000*velP);
|
||||
if (runSpeed > targetVel) {runSpeed = targetVel;}
|
||||
System.err.println(velP + " " + runSpeed);
|
||||
SmartDashboard.putNumber("shoot", actualVel);
|
||||
m_shooterFalcon.set(TalonFXControlMode.Velocity, runSpeed);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user