balise detect
This commit is contained in:
parent
01cf27edb5
commit
f3f1f07fd0
|
@ -6,7 +6,6 @@ import (
|
|||
"joylink.club/bj-rtsts-server/third_party/message"
|
||||
"joylink.club/bj-rtsts-server/third_party/udp"
|
||||
"joylink.club/bj-rtsts-server/ts/simulation/wayside/memory"
|
||||
"joylink.club/rtsssimulation/component"
|
||||
"joylink.club/rtsssimulation/fi"
|
||||
"log/slog"
|
||||
"sort"
|
||||
|
@ -215,12 +214,10 @@ func (s *btmCanetClient) rspToAtp(isResendRequest bool) {
|
|||
statusF.Dsn = s.dsn
|
||||
s.dsnAdd1()
|
||||
//
|
||||
balises, btSendErr := fi.GetScannedBaliseTelegram(s.bcm.EvnWorld())
|
||||
var baliseTelegram *component.TrainBaliseTelegram
|
||||
baliseTelegram, btSendErr := fi.GetScannedBaliseTelegram(s.bcm.EvnWorld())
|
||||
if btSendErr != nil {
|
||||
//slog.Debug(btSendErr.Error())
|
||||
} else {
|
||||
baliseTelegram = <-balises
|
||||
slog.Debug(fmt.Sprintf("发送应答器报文,应答器:[%s]", baliseTelegram.BaliseId))
|
||||
}
|
||||
//true-收到应答器报文
|
||||
|
|
Loading…
Reference in New Issue