修改仿真构建bug;公里标转换不再考虑方向

This commit is contained in:
joylink_zhangsai 2023-09-25 14:38:18 +08:00
parent 62c6482584
commit 764639a74a
2 changed files with 3 additions and 3 deletions

View File

@ -493,11 +493,11 @@ func findTurnoutIds(axleCountingMap map[string]*graphicData.AxleCounting, axleId
func buildKmConverts(ksList []*graphicData.KilometerSystem) []*proto.KilometerConvert { func buildKmConverts(ksList []*graphicData.KilometerSystem) []*proto.KilometerConvert {
var kmConverts []*proto.KilometerConvert var kmConverts []*proto.KilometerConvert
for i, ks := range ksList { for i, ks := range ksList {
if ks.Kilometer == 0 || ks.CoordinateSystem == "" { if ks.CoordinateSystem == "" {
continue continue
} }
for j := i + 1; j < len(ksList); j++ { for j := i + 1; j < len(ksList); j++ {
if ksList[j].Kilometer == 0 || ksList[j].CoordinateSystem == "" { if ksList[j].CoordinateSystem == "" {
continue continue
} }
kmConverts = append(kmConverts, buildKmConvert(ks, ksList[j])) kmConverts = append(kmConverts, buildKmConvert(ks, ksList[j]))

@ -1 +1 @@
Subproject commit 026b04e539d3369f672a45a8d6e4cc4383929498 Subproject commit 0dfee803453857329f121f37e5a2e88cebd1ea67