This commit is contained in:
OnDYCLaptop
2026-02-24 15:33:33 +08:00
parent 77cb224773
commit 6668da3462
2 changed files with 3 additions and 3 deletions
@@ -146,8 +146,8 @@ public class DriveControls {
Rotation2d BumpcurrentAngle = drivetrain.getState().Pose.getRotation();
double BumpcurrentRad = BumpcurrentAngle.getRadians();
double targetA = Math.toRadians(135.0);
double targetB = Math.toRadians(-135.0);
double targetA = Math.toRadians(45);
double targetB = Math.toRadians(-45);
// 计算误差
double errorA = targetA - BumpcurrentRad;
double errorB = targetB - BumpcurrentRad;