This commit is contained in:
Antoine PerreaultE 2025-02-22 12:48:56 -05:00
parent 1f4111ef6d
commit 26d32e3707
4 changed files with 10 additions and 9 deletions

View File

@ -27,8 +27,8 @@ public class AlgueExpire extends Command {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
if(pince.emperagealgue()>8){
pince.aspirealgue(0);
if(pince.emperagealgue()>60){
pince.aspirealgue(-0.5);
}
else{
pince.aspirealgue(-0.5);

View File

@ -28,7 +28,7 @@ public class CoralAlgueInspire extends Command {
@Override
public void execute() {
pince.aspirecoral(-.5);
if(pince.emperagealgue()>8){
if(pince.emperagealgue()>60){
pince.aspirealgue(0);
bougie.Bleu();
}

View File

@ -26,12 +26,13 @@ public class CoralExpire extends Command {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
if(pince.emperagecoral() > 8){
pince.aspirecoral(0);
}
else{
//if(pince.emperagecoral() > 60){
// pince.aspirecoral(0);
//}
//else{
pince.aspirecoral(-.5);
bougie.Jaune();}
//bougie.Jaune();
// }
}
// Called once the command ends or is interrupted.

View File

@ -11,7 +11,7 @@ import com.ctre.phoenix.led.RainbowAnimation;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
public class Bougie extends SubsystemBase {
CANdle candle = new CANdle(5);
CANdle candle = new CANdle(23);
CANdleConfiguration config = new CANdleConfiguration();
RainbowAnimation rainbowAnim = new RainbowAnimation(1, 0.5, 64);
/** Creates a new Bougie. */