From f8dba22a237d02cde2d79cc7e7480c7155ace207 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Wed, 25 Oct 2023 11:03:19 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8D=8A=E5=AE=9E=E7=89=A9=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E8=A7=A3=E6=9E=90=E4=BF=AE=E6=94=B9=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/bj_local.yml | 2 +- config/test_local.yml | 2 +- third_party/message/train_control.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/bj_local.yml b/config/bj_local.yml index fed7d57..bb08c56 100644 --- a/config/bj_local.yml +++ b/config/bj_local.yml @@ -23,7 +23,7 @@ interlock: ip: 10.60.1.59 localPort: 10000 remotePort: 4000 - open: true + open: false # 数据源 datasource: diff --git a/config/test_local.yml b/config/test_local.yml index 346044b..c13489e 100644 --- a/config/test_local.yml +++ b/config/test_local.yml @@ -23,7 +23,7 @@ interlock: ip: 10.60.1.59 localPort: 10000 remotePort: 4000 - open: true + open: false # 数据源 datasource: diff --git a/third_party/message/train_control.go b/third_party/message/train_control.go index 0956ec4..9a626a1 100644 --- a/third_party/message/train_control.go +++ b/third_party/message/train_control.go @@ -25,7 +25,7 @@ func (r *TrainControlMsg) Decode(buf []byte) error { t.TractionStatus = (b2 & (1 << 4)) != 0 t.BrakingStatus = (b2 & (1 << 5)) != 0 t.EmergencyBrakingStatus = (b2 & (1 << 6)) != 0 - t.TurnbackStatus = (b2 & 7) != 0 + t.TurnbackStatus = (b2 & (1 << 7)) != 0 b3 := buf[3] t.JumpStatus = (b3 & 1) != 0 t.Ato = (b3 & (1 << 1)) != 0