【修改注释】

This commit is contained in:
weizhihong 2023-11-09 10:20:50 +08:00
parent e461e762e4
commit c10f989935
1 changed files with 3 additions and 3 deletions

View File

@ -496,7 +496,7 @@ func upTurnoutToDirectionAndAB(repo *repository.Repository, uid, port string, up
}
// 根据设备获取列车公里标
// 入参仿真Repository、UID、端口、上下行、link偏移
// 入参仿真Repository、UID、端口、上下行、设备偏移
// 输出:公里标信息
func CalcTrainKilometer(repo *repository.Repository, uid, port string, runDirection bool, offset int64) (
km *proto2.Kilometer) {
@ -509,7 +509,7 @@ func CalcTrainKilometer(repo *repository.Repository, uid, port string, runDirect
}
// 获取区段的上公里标
// 入参仿真Repository、UID、上下行、link偏移
// 入参仿真Repository、UID、上下行、设备偏移
// 输出:公里标信息
func sectionOffsetToKilometer(repo *repository.Repository, uid string, runDirection bool, offset int64) (km *proto2.Kilometer) {
section := repo.FindPhysicalSection(uid)
@ -526,7 +526,7 @@ func sectionOffsetToKilometer(repo *repository.Repository, uid string, runDirect
}
// 获取道岔的公里标
// 入参仿真Repository、UID、上下行、link偏移
// 入参仿真Repository、UID、上下行、设备偏移
// 输出:公里标信息
func turnoutOffsetToKilometer(repo *repository.Repository, uid string, runDirection bool, offset int64) (km *proto2.Kilometer) {
turnout := repo.FindTurnout(uid)