【修改注释】
This commit is contained in:
parent
e461e762e4
commit
c10f989935
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user