From 7c7e759a7c20da497365c2ed654649558618692f Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 08 五月 2024 10:43:55 +0800
Subject: [PATCH] #
---
src/components/agv.jsx | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/components/agv.jsx b/src/components/agv.jsx
index afbaff0..fe06e45 100644
--- a/src/components/agv.jsx
+++ b/src/components/agv.jsx
@@ -13,6 +13,10 @@
REAL_COMPARE_MAP_OFFSET_Z,
} from '../config/setting'
+const getCorrectForkDis = (loaderAngle, forkDis) => {
+
+}
+
const Agv = (props) => {
const { agvNo, position, trayList, hasBox } = props;
const theta = -props.theta;
@@ -81,6 +85,7 @@
const loaderAbsoluteAngle = (theta + loaderTheta) % 360;
if (loaderAngle !== loaderAbsoluteAngle && props.loaderTheta !== null) {
const targetTheta = Common.normalizeAngle(loaderAbsoluteAngle - loaderAngle) + loaderAngle;
+ console.log(targetTheta);
new TWEEN.Tween({ value: loaderAngle })
.to({ value: targetTheta }, INTERVAL_TIME)
.easing(TWEEN.Easing.Linear.None)
--
Gitblit v1.9.1