position qui change
This commit is contained in:
@@ -69,8 +69,8 @@ public class GrimperReservoir extends Command {
|
||||
if(alliance.get() == Alliance.Red){
|
||||
pigeonAngle = drivetrain.getPigeon2().getYaw().getValueAsDouble();
|
||||
System.out.println(pigeonAngle);
|
||||
y = 6.959326;
|
||||
x = 13.57966;
|
||||
y = 5.4;
|
||||
x = 15.4;
|
||||
angle = 180;
|
||||
if(pigeonAngle< 190 && pigeonAngle> 170){
|
||||
drivetrain.setControl(drive.withVelocityY(MathUtil.clamp(((y-boty)*5.5), -2, 2)).withVelocityX(MathUtil.clamp(((x-botx)*5.5),-2,2)));
|
||||
|
||||
Reference in New Issue
Block a user