From ece13a2fcb93d0e7ca374459c4294ec055241c5b Mon Sep 17 00:00:00 2001 From: liujing Date: Thu, 26 May 2022 11:12:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E5=90=91=E7=9B=98=E8=BD=AC=E5=90=91?= =?UTF-8?q?=E5=BF=98=E8=AE=B0=E5=8A=A0"-"=E7=AC=A6=E5=8F=B7,=E5=B7=A6?= =?UTF-8?q?=E6=AD=A3=E5=8F=B3=E8=B4=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eagle/core/function/hmi/ui/widget/SteeringWheelView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SteeringWheelView.java b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SteeringWheelView.java index 5a453dbbd0..fc8d719fa2 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SteeringWheelView.java +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SteeringWheelView.java @@ -230,14 +230,14 @@ public class SteeringWheelView extends ConstraintLayout { */ private void animationWithSteeringData(float steering) { Log.d(TAG, "方向盘转动" + String.valueOf(steering)); - rotateAnimation = new RotateAnimation(fromDegrees, steering, + rotateAnimation = new RotateAnimation(fromDegrees, -steering, RotateAnimation.RELATIVE_TO_SELF, 0.5f, RotateAnimation.RELATIVE_TO_SELF, 0.5f); rotateAnimation.setDuration(1000);//旋转时长 rotateAnimation.setFillAfter(true);//旋转后保持原状 autopilotIV.clearAnimation(); autopilotIV.startAnimation(rotateAnimation); - fromDegrees = steering; + fromDegrees = -steering; } }