列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态
This commit is contained in:
parent
07f0fb78cf
commit
de6f358171
@ -71,6 +71,7 @@ type ThridPartyConfig struct {
|
|||||||
CidcModbus []CidcModbusConfig `json:"cidcModbus" description:"联锁驱采Modbus接口配置"`
|
CidcModbus []CidcModbusConfig `json:"cidcModbus" description:"联锁驱采Modbus接口配置"`
|
||||||
Radar RadarConfig `json:"radar" description:"车载雷达相关配置"`
|
Radar RadarConfig `json:"radar" description:"车载雷达相关配置"`
|
||||||
Acc AccConfig `json:"acc" description:"车载加速计"`
|
Acc AccConfig `json:"acc" description:"车载加速计"`
|
||||||
|
PcSimConfig VehiclePCSimConfig `json:"pcSimConfig" description:"车载pc仿真平台通信"`
|
||||||
}
|
}
|
||||||
type RadarConfig struct {
|
type RadarConfig struct {
|
||||||
Open bool `json:"open" description:"是否开启"`
|
Open bool `json:"open" description:"是否开启"`
|
||||||
@ -168,6 +169,13 @@ type RsspConfig struct {
|
|||||||
LocalUdpPort int `json:"localUdpPort" description:"本地服务器端口"` //本地服务器端口
|
LocalUdpPort int `json:"localUdpPort" description:"本地服务器端口"` //本地服务器端口
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type VehiclePCSimConfig struct {
|
||||||
|
Open bool `json:"open" description:"是否开启"`
|
||||||
|
PcSimIp string `json:"pcSimIp" description:"pc仿真平台通信ip"`
|
||||||
|
PcSimPort uint32 `json:"pcSimPort" description:"pc仿真平台通信端口"`
|
||||||
|
LocalTestingPort uint32 `json:"localTestingPort" description:"本地测试端口"`
|
||||||
|
}
|
||||||
|
|
||||||
// CheckAddress 检测目标源地址目的地址是否在配置中
|
// CheckAddress 检测目标源地址目的地址是否在配置中
|
||||||
func (c *RsspConfig) CheckAddress(srcAddr uint16, dstAddr uint16) bool {
|
func (c *RsspConfig) CheckAddress(srcAddr uint16, dstAddr uint16) bool {
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user