Merge remote-tracking branch 'origin/master'

This commit is contained in:
joylink_zhangsai 2023-08-28 14:25:37 +08:00
commit 97958719af

View File

@ -166,6 +166,8 @@ func convert(info *dynamics.TrainInfo, sta *state.TrainState, simulation *memory
} else if sta.VobcState.DirectionBackward {
sta.HeadDirection = !info.Up
}
} else {
sta.HeadDirection = runDirection
}
// 赋值动力学信息
sta.DynamicState.Heartbeat = int32(info.LifeSignal)