position qui change
This commit is contained in:
@@ -69,8 +69,8 @@ public class GrimperReservoir extends Command {
|
|||||||
if(alliance.get() == Alliance.Red){
|
if(alliance.get() == Alliance.Red){
|
||||||
pigeonAngle = drivetrain.getPigeon2().getYaw().getValueAsDouble();
|
pigeonAngle = drivetrain.getPigeon2().getYaw().getValueAsDouble();
|
||||||
System.out.println(pigeonAngle);
|
System.out.println(pigeonAngle);
|
||||||
y = 6.959326;
|
y = 5.4;
|
||||||
x = 13.57966;
|
x = 15.4;
|
||||||
angle = 180;
|
angle = 180;
|
||||||
if(pigeonAngle< 190 && pigeonAngle> 170){
|
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)));
|
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