conveyor修复

This commit is contained in:
OnDYCLaptop
2026-03-06 14:32:16 +08:00
parent 7cee19994f
commit ce8b17e377
3 changed files with 10 additions and 11 deletions
@@ -49,7 +49,7 @@ public class ShooterControls {
flywheelSpeed = 0;
conveyorSpeed = 0;
}
if(shooterSubsystem.flywheelMotorLeft.getVelocity().getValueAsDouble()<flywheelSpeed*0.7){
if(shooterSubsystem.flywheelMotorLeft.getVelocity().getValueAsDouble()<flywheelSpeed*0.95){
conveyorSpeed = 0;
}
shooterControlTable.getEntry("flywheelTargetSpeed").setDouble(flywheelSpeed);
@@ -76,9 +76,9 @@ public class ShooterControls {
flywheelSpeed = 0;
conveyorSpeed = 0;
}
// if(shooterSubsystem.flywheelMotorLeft.getVelocity().getValueAsDouble()<flywheelSpeed*0.7){
// conveyorSpeed = 0;
// }
if(shooterSubsystem.flywheelMotorLeft.getVelocity().getValueAsDouble()<flywheelSpeed*0.95){
conveyorSpeed = 0;
}
shooterControlTable.getEntry("flywheelTargetSpeed").setDouble(flywheelSpeed);
shooterControlTable.getEntry("conveyerTargetSpeed").setDouble(conveyorSpeed);
shooterControlTable.getEntry("backboardTargetPosition").setDouble(backboardPosition);