amperage
This commit is contained in:
parent
1f4111ef6d
commit
26d32e3707
@ -27,8 +27,8 @@ public class AlgueExpire extends Command {
|
|||||||
// Called every time the scheduler runs while the command is scheduled.
|
// Called every time the scheduler runs while the command is scheduled.
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
if(pince.emperagealgue()>8){
|
if(pince.emperagealgue()>60){
|
||||||
pince.aspirealgue(0);
|
pince.aspirealgue(-0.5);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
pince.aspirealgue(-0.5);
|
pince.aspirealgue(-0.5);
|
||||||
|
@ -28,7 +28,7 @@ public class CoralAlgueInspire extends Command {
|
|||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
pince.aspirecoral(-.5);
|
pince.aspirecoral(-.5);
|
||||||
if(pince.emperagealgue()>8){
|
if(pince.emperagealgue()>60){
|
||||||
pince.aspirealgue(0);
|
pince.aspirealgue(0);
|
||||||
bougie.Bleu();
|
bougie.Bleu();
|
||||||
}
|
}
|
||||||
|
@ -26,12 +26,13 @@ public class CoralExpire extends Command {
|
|||||||
// Called every time the scheduler runs while the command is scheduled.
|
// Called every time the scheduler runs while the command is scheduled.
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
if(pince.emperagecoral() > 8){
|
//if(pince.emperagecoral() > 60){
|
||||||
pince.aspirecoral(0);
|
// pince.aspirecoral(0);
|
||||||
}
|
//}
|
||||||
else{
|
//else{
|
||||||
pince.aspirecoral(-.5);
|
pince.aspirecoral(-.5);
|
||||||
bougie.Jaune();}
|
//bougie.Jaune();
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called once the command ends or is interrupted.
|
// 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;
|
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||||
|
|
||||||
public class Bougie extends SubsystemBase {
|
public class Bougie extends SubsystemBase {
|
||||||
CANdle candle = new CANdle(5);
|
CANdle candle = new CANdle(23);
|
||||||
CANdleConfiguration config = new CANdleConfiguration();
|
CANdleConfiguration config = new CANdleConfiguration();
|
||||||
RainbowAnimation rainbowAnim = new RainbowAnimation(1, 0.5, 64);
|
RainbowAnimation rainbowAnim = new RainbowAnimation(1, 0.5, 64);
|
||||||
/** Creates a new Bougie. */
|
/** Creates a new Bougie. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user