From 8354770a9ef0d9786299442a455a3dfe7ad79a4c Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Mon, 7 Jul 2025 17:36:33 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=9C=EC=A0=84=20=EC=8B=9C=EB=AE=AC?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=85=98=20=EA=B0=81=EB=8F=84=20=EA=B3=84?= =?UTF-8?q?=EC=82=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/module/useTrestle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js index 29f2d664..9fa75e67 100644 --- a/src/hooks/module/useTrestle.js +++ b/src/hooks/module/useTrestle.js @@ -811,7 +811,7 @@ export const useTrestle = () => { return -surfaceCompass } - let resultAzimuth = surfaceCompass || moduleCompass + let resultAzimuth = moduleCompass @@ -840,7 +840,7 @@ export const useTrestle = () => { if (resultAzimuth > 90) { return -180 + (resultAzimuth - 90) } - return 180 + (90 - resultAzimuth) + return 180 + (resultAzimuth - 90) } else if (resultAzimuth === 180) { return -180 + (resultAzimuth - 90) }