mode auto
This commit is contained in:
parent
a420d3ff2f
commit
9ce0d79903
@ -31,13 +31,13 @@ public class AvancerAuto 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() {
|
||||||
drive.withVelocityX(0.2*MaxSpeed);
|
drive.withVelocityY(0.2*MaxSpeed);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called once the command ends or is interrupted.
|
// Called once the command ends or is interrupted.
|
||||||
@Override
|
@Override
|
||||||
public void end(boolean interrupted) {
|
public void end(boolean interrupted) {
|
||||||
drive.withVelocityX(0);
|
drive.withVelocityY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns true when the command should end.
|
// Returns true when the command should end.
|
||||||
|
@ -27,7 +27,6 @@ public class L1Requin 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() {
|
||||||
bougie.Bleu();
|
|
||||||
if(requin.encodeur()<=530 && requin.encodeur()>=430){
|
if(requin.encodeur()<=530 && requin.encodeur()>=430){
|
||||||
requin.rotationer(0);
|
requin.rotationer(0);
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
|||||||
public class Bougie extends SubsystemBase {
|
public class Bougie extends SubsystemBase {
|
||||||
CANdle candle = new CANdle(23);
|
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, 68);
|
||||||
/** Creates a new Bougie. */
|
/** Creates a new Bougie. */
|
||||||
public Bougie() {
|
public Bougie() {
|
||||||
config.brightnessScalar = 0.5;
|
config.brightnessScalar = 0.5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user