oui
This commit is contained in:
@@ -64,7 +64,7 @@ public class GrimperMur extends Command {
|
||||
x = 1.11;
|
||||
angle = 0;
|
||||
if(drivetrain.getPigeon2().getYaw().getValueAsDouble() > 350 || drivetrain.getPigeon2().getYaw().getValueAsDouble() < 10){
|
||||
drivetrain.setControl(drive.withVelocityX(y-boty).withVelocityY(x-botx));
|
||||
drivetrain.setControl(drive.withVelocityY(y-boty).withVelocityX(x-botx));
|
||||
}
|
||||
else{
|
||||
if(drivetrain.getPigeon2().getYaw().getValueAsDouble() >0 && drivetrain.getPigeon2().getYaw().getValueAsDouble() <180){
|
||||
@@ -80,7 +80,7 @@ public class GrimperMur extends Command {
|
||||
y = 6.959326;
|
||||
angle = 180;
|
||||
if(drivetrain.getPigeon2().getYaw().getValueAsDouble() > 170 && drivetrain.getPigeon2().getYaw().getValueAsDouble() < 190){
|
||||
drivetrain.setControl(drive.withVelocityX(y-boty).withVelocityY(x-botx));
|
||||
drivetrain.setControl(drive.withVelocityY(y-boty).withVelocityX(x-botx));
|
||||
}
|
||||
else{
|
||||
if(drivetrain.getPigeon2().getYaw().getValueAsDouble() >0 && drivetrain.getPigeon2().getYaw().getValueAsDouble() <180){
|
||||
|
||||
Reference in New Issue
Block a user