【修改半实物仿真系统IP配置】
This commit is contained in:
parent
af28993e24
commit
c3d48fc03c
|
@ -199,7 +199,7 @@ func addTrain(c *gin.Context) {
|
||||||
HeadOffset: req.HeadOffset,
|
HeadOffset: req.HeadOffset,
|
||||||
DevicePort: req.DevicePort,
|
DevicePort: req.DevicePort,
|
||||||
RunDirection: req.RunDirection,
|
RunDirection: req.RunDirection,
|
||||||
TrainLength: int64(service.CalcTrainLenght(req.TrainModelId, req.CarriageNum)),
|
//TrainLength: int64(service.CalcTrainLenght(req.TrainModelId, req.CarriageNum)),
|
||||||
}
|
}
|
||||||
memory.AddTrainState(simulation, rsp)
|
memory.AddTrainState(simulation, rsp)
|
||||||
c.JSON(http.StatusOK, &rsp)
|
c.JSON(http.StatusOK, &rsp)
|
||||||
|
|
|
@ -13,7 +13,7 @@ dynamics:
|
||||||
httpPort: 7800
|
httpPort: 7800
|
||||||
# VOBC
|
# VOBC
|
||||||
vobc:
|
vobc:
|
||||||
ip: 10.60.1.52
|
ip: 10.60.1.59
|
||||||
localPort: 10000
|
localPort: 10000
|
||||||
remotePort: 4000
|
remotePort: 4000
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ dynamics:
|
||||||
httpPort: 7800
|
httpPort: 7800
|
||||||
# VOBC
|
# VOBC
|
||||||
vobc:
|
vobc:
|
||||||
ip: 10.60.1.52
|
ip: 10.60.1.59
|
||||||
localPort: 10000
|
localPort: 10000
|
||||||
remotePort: 4000
|
remotePort: 4000
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ dynamics:
|
||||||
httpPort: 7800
|
httpPort: 7800
|
||||||
# VOBC
|
# VOBC
|
||||||
vobc:
|
vobc:
|
||||||
ip: 10.60.1.52
|
ip: 10.60.1.59
|
||||||
localPort: 10000
|
localPort: 10000
|
||||||
remotePort: 4000
|
remotePort: 4000
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue