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; } }