amperage
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
| @@ -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(); | ||||
|      }  | ||||
|   | ||||
| @@ -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. | ||||
|   | ||||
| @@ -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. */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user