【半实物消息解析修改】
This commit is contained in:
parent
ce657e262a
commit
f8dba22a23
@ -23,7 +23,7 @@ interlock:
|
||||
ip: 10.60.1.59
|
||||
localPort: 10000
|
||||
remotePort: 4000
|
||||
open: true
|
||||
open: false
|
||||
|
||||
# 数据源
|
||||
datasource:
|
||||
|
@ -23,7 +23,7 @@ interlock:
|
||||
ip: 10.60.1.59
|
||||
localPort: 10000
|
||||
remotePort: 4000
|
||||
open: true
|
||||
open: false
|
||||
|
||||
# 数据源
|
||||
datasource:
|
||||
|
2
third_party/message/train_control.go
vendored
2
third_party/message/train_control.go
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user