From fcf0cf02fdb5c66cd2d776a061442d885749f350 Mon Sep 17 00:00:00 2001 From: renwj Date: Tue, 11 Jul 2023 11:56:02 +0800 Subject: [PATCH] =?UTF-8?q?[3.3.0][M1]=20=E7=8E=AF=E8=A7=86=E8=BD=AC?= =?UTF-8?q?=E5=90=91=E8=A7=92=E5=BC=84=E5=8F=8D=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eagle/core/function/hmi/ui/lookaround/M1LookAroundView.kt | 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/lookaround/M1LookAroundView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/lookaround/M1LookAroundView.kt index 235049fa90..d11352ba45 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/lookaround/M1LookAroundView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/lookaround/M1LookAroundView.kt @@ -200,7 +200,7 @@ class M1LookAroundView: SurfaceView, SurfaceHolder.Callback, Runnable, IMoGoChas val outerAngle = abs(steering * 1.0 / VEHICLE_STEERING_RATIO) val radians = Math.toRadians(outerAngle) val d = (newTargetHeight / tan(radians)).toFloat() - if (steering < 0) { + if (steering > 0) { // 左打轮 // 将坐标原点平移到圆心 canvas.translate(newTargetX - (d - newTargetWidth), newTargetY + newTargetHeight) @@ -215,7 +215,7 @@ class M1LookAroundView: SurfaceView, SurfaceHolder.Callback, Runnable, IMoGoChas canvas.drawArc(innerRect, -innerAngle.toFloat(), -60f, false, routerPaint) } - if (steering > 0) { + if (steering < 0) { //右打轮 // 将坐标原点平移到圆心 canvas.translate(newTargetX + d, newTargetY + newTargetHeight)