From 2ef6e5e0bbe2487fd9adaf9bde1c33b06f055de2 Mon Sep 17 00:00:00 2001 From: DoctorReid Date: Thu, 26 Oct 2023 15:49:46 +0800 Subject: [PATCH] =?UTF-8?q?#56=20=E4=BF=AE=E5=A4=8D=E6=A0=A1=E5=87=86?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=8E=A5=E5=BE=85=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sr/app/calibrator.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sr/app/calibrator.py b/src/sr/app/calibrator.py index fcd00cf3..a5acc5b8 100644 --- a/src/sr/app/calibrator.py +++ b/src/sr/app/calibrator.py @@ -3,6 +3,7 @@ import numpy as np from cv2.typing import MatLike +from basic.i18_utils import gt from basic.img import cv2_utils from basic.log_utils import log from sr import constants @@ -31,10 +32,10 @@ def run(self): def _check_mini_map_pos(self, screenshot: MatLike = None): log.info('[小地图定位校准] 开始') if screenshot is None: - tp: TransportPoint = constants.map.P01_R04_SP03 + tp: TransportPoint = constants.map.P01_R02_SP02 op = Transport(self.ctx, tp, True) if not op.execute(): - log.error('传送到支援舱段失败 小地图定位校准 失败') + log.error('传送到 %s %s 失败 小地图定位校准 失败', gt(tp.region.cn), gt(tp.cn)) return False screenshot = self.screenshot() @@ -63,7 +64,7 @@ def _check_turning_rate(self, tp: bool = True): p: TransportPoint = constants.map.P01_R01_SP03 op = Transport(self.ctx, p, False) if not op.execute(): - log.error('传送到黑塔办公室失败 转向校准 失败') + log.error('传送到 %s %s 失败 转向校准 失败', gt(p.region.cn), gt(p.cn)) return False turn_distance = 500