#
luxiaotao1123
2024-05-10 8c94764532efce17b1052071cec75990fa591c0e
src/components/agv.jsx
@@ -98,7 +98,7 @@
        maxVal = 800;
    }
    if (loaderAngle > 270 - 10 && loaderAngle < 270 + 10) {
        maxVal = 800;
        maxVal = 0;
    }
    if (forkLen < 0) {
        return -maxVal * 0.077;
@@ -186,8 +186,8 @@
        }
        // fork lenght
        // const forkLength = props.forkLength * 0.077;
        const forkLength = forkLengthFn(props.forkLength, loaderTargetTheta);
        const forkLength = props.forkLength * 0.077;
        // const forkLength = forkLengthFn(props.forkLength, loaderTargetTheta);
        if (forkDis !== forkLength && props.forkLength !== null) {
            const targetForkDis = getCorrectForkDis(Common.positiveAngle(loaderTargetTheta), forkLength);
            new TWEEN.Tween({ value: forkDis })