From 03a6e877304a75d302174ced2c9dcaa9206e4b44 Mon Sep 17 00:00:00 2001 From: ywb <347742090@qq.com> Date: Fri, 15 May 2026 21:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89setting=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agv_app/static/js/setting.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agv_app/static/js/setting.js b/agv_app/static/js/setting.js index 4567e62..6219b54 100644 --- a/agv_app/static/js/setting.js +++ b/agv_app/static/js/setting.js @@ -125,26 +125,26 @@ const app = createApp({ }, getMapX(coords) { if (!coords || !this.mapMeta) { - console.log('[getMapX] mapMeta not loaded, returning default 50'); + //console.log('[getMapX] mapMeta not loaded, returning default 50'); return 50 } const [x, y, yaw] = coords const { resolution, origin, width } = this.mapMeta const px = (x - origin[0]) / (resolution * width) * 100 const result = Math.max(0, Math.min(100, px)); - console.log('[getMapX]', coords, '→ px%:', result); + //console.log('[getMapX]', coords, '→ px%:', result); return result }, getMapY(coords) { if (!coords || !this.mapMeta) { - console.log('[getMapY] mapMeta not loaded, returning default 50'); + //console.log('[getMapY] mapMeta not loaded, returning default 50'); return 50 } const [x, y, yaw] = coords const { resolution, origin, height } = this.mapMeta const py = (y - origin[1]) / (resolution * height) * 100 const result = Math.max(0, Math.min(100, 100 - py)); - console.log('[getMapY]', coords, '→ py%:', result); + //console.log('[getMapY]', coords, '→ py%:', result); return result }, async saveMap() {