From 5f95106870ba0cc1e75766698c3dbee74c45b39f Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Mon, 5 Aug 2024 16:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E6=8E=A7=E5=88=B6=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E7=89=88=E6=9C=AC=E8=AE=B0=E5=BD=951?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fi/train.go | 4 ++++ init.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fi/train.go b/fi/train.go index 6081487..6de6dee 100644 --- a/fi/train.go +++ b/fi/train.go @@ -99,6 +99,10 @@ type TrainHeadPositionInfo struct { Speed float32 //加速度(m/s^2) Acceleration float32 + //列车上一次所在轨道link + OldLink string + //列车上一次车头位置信息 + OldLinkOffset int64 } func (t *TrainHeadPositionInfo) String() string { diff --git a/init.go b/init.go index bd96eb8..7ca4ca2 100644 --- a/init.go +++ b/init.go @@ -10,7 +10,7 @@ import ( const ( // 仿真循环间隔,单位ms - RtssSimulationTick = 20 + RtssSimulationTick = 10 ) // 初始化仿真