From a165321c39f6ab1c16585642a6d188156302172e Mon Sep 17 00:00:00 2001 From: thesai <1021828630@qq.com> Date: Thu, 22 Aug 2024 14:03:33 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E8=AE=BE=E5=A4=87=E5=85=AC?= =?UTF-8?q?=E9=87=8C=E8=A1=A8=E9=95=BF=E7=9F=AD=E9=93=BE=E6=A0=A1=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rts-sim-testing-message | 2 +- ts/simulation/wayside/memory/wayside_simulation.go | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rts-sim-testing-message b/rts-sim-testing-message index bc7ca44..9441316 160000 --- a/rts-sim-testing-message +++ b/rts-sim-testing-message @@ -1 +1 @@ -Subproject commit bc7ca44ffd0a95f8a1ae14b391f93b28b11a452b +Subproject commit 94413167c079aaa7aa9717a0e4a6281a21c49244 diff --git a/ts/simulation/wayside/memory/wayside_simulation.go b/ts/simulation/wayside/memory/wayside_simulation.go index 85c3be6..825a116 100644 --- a/ts/simulation/wayside/memory/wayside_simulation.go +++ b/ts/simulation/wayside/memory/wayside_simulation.go @@ -1297,6 +1297,13 @@ func fillProtoRepository(repo *proto.Repository, storage *data_proto.RtssGraphic SameTrend: data.SameTrend, }) } + //公里标校准数据 + for _, calibration := range storage.KilometerMarkCalibrations { + repo.KilometerCalibrations = append(repo.KilometerCalibrations, &proto.KilometerCalibration{ + Design: convertKm(calibration.DesignKm), + Actual: convertKm(calibration.ActualKm), + }) + } //// 初始化站场图按钮 //for _, data := range storage.EsbButtons { // repo.Buttons = append(repo.Buttons, &proto.Button{