mode marche yesssssssss
This commit is contained in:
@@ -48,7 +48,9 @@ public class Lancer extends Command {
|
||||
public void execute() {
|
||||
double[] BotPose = new double[6];
|
||||
if(limeLight3G.getV()){
|
||||
if(!alliance.isPresent()){return;}
|
||||
if(!alliance.isPresent()){
|
||||
return;
|
||||
}
|
||||
if(alliance.get() == Alliance.Blue){
|
||||
BotPose = limeLight3G.getBotPoseBlue();
|
||||
}
|
||||
@@ -60,10 +62,11 @@ public class Lancer extends Command {
|
||||
vitesse = 410.57 * ((Math.sqrt(Math.pow(Math.abs(4.625594-botx), 2) + Math.pow(Math.abs(4.034536-boty), 2)))) + 2250;
|
||||
}
|
||||
if(limeLight3G.getV()){
|
||||
System.out.println(vitesse);
|
||||
|
||||
|
||||
double output = pidController.calculate(lanceur.Vitesse(),vitesse);
|
||||
lanceur.Lancer(output);
|
||||
System.out.println(output);
|
||||
if(lanceur.Vitesse() >= vitesse-800){
|
||||
timer.start();
|
||||
if(timer.get() >1){
|
||||
|
||||
Reference in New Issue
Block a user