This commit is contained in:
samuel desharnais 2024-02-21 18:48:46 -05:00
parent 6c4dfc9ddb
commit c13d1ecf2c
3 changed files with 7 additions and 3 deletions

View File

@ -20,7 +20,9 @@ public class LancerAmp extends Command {
// Called when the command is initially scheduled.
@Override
public void initialize(){}
public void initialize(){
lancer.pid();
}
// Called every time the scheduler runs while the command is scheduled.
@Override

View File

@ -21,7 +21,9 @@ public class LancerNote extends Command {
// Called when the command is initially scheduled.
@Override
public void initialize() {}
public void initialize() {
lancer.pid();
}
// Called every time the scheduler runs while the command is scheduled.
@Override

View File

@ -48,7 +48,7 @@ public class Lanceur extends SubsystemBase {
private final MutableMeasure<Angle> angle = mutable(Rotations.of(0));
// Mutable holder for unit-safe linear velocity values, persisted to avoid reallocation.
private final MutableMeasure<Velocity<Angle>> velocity = mutable(RotationsPerSecond.of(0));
public void pidspeaker(){
public void pid(){
lanceur1.getPIDController().setP(0.000006824);
lanceur2.getPIDController().setP(0.0051335);
lanceur3.getPIDController().setP(0.00079046);