limitswitch
This commit is contained in:
parent
75c59ddbe5
commit
a023213a18
@ -27,10 +27,13 @@ public class FollowAprilTag extends Command {
|
||||
@Override
|
||||
public void execute() {
|
||||
|
||||
|
||||
if (enlignement.getv()==1)
|
||||
{
|
||||
lanceur.tourelRotation(0,0, enlignement.getx()/30);
|
||||
}
|
||||
if (lanceur.limitswitch1() || lanceur.limitswitch2()){
|
||||
lanceur.lance(0);}
|
||||
else
|
||||
{
|
||||
lanceur.tourelRotation(0, 0, 0);
|
||||
|
@ -27,7 +27,9 @@ public class Lancer extends Command {
|
||||
@Override
|
||||
public void execute() {
|
||||
lanceur.lance();
|
||||
accumulateur.Petitlanceur(0.7);
|
||||
accumulateur.desaccumule(0.2);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class RobotContainer {
|
||||
|
||||
private void configureBindings() {
|
||||
|
||||
manette.x().whileTrue(new Lancer(lanceur));
|
||||
manette.x().whileTrue(new Lancer(lanceur,accumulateur));
|
||||
manette.leftBumper().toggleOnTrue(new FollowAprilTag(limelight3G, lanceur));
|
||||
manette.a().whileTrue(new Desaccumuler(accumulateur));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user