From de6f3581712370cf417c49a03b54b2110ef8d7ca Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Mon, 18 Mar 2024 11:39:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E5=89=8D=E7=AB=AF=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=88=97=E8=BD=A6=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E4=B8=89=E6=96=B9=E6=98=A0=E5=B0=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8F=8Aws=E8=BF=94=E5=9B=9E=E5=88=97=E8=BD=A6=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/config.go b/config/config.go index e02eb95..bb0bca0 100644 --- a/config/config.go +++ b/config/config.go @@ -71,6 +71,7 @@ type ThridPartyConfig struct { CidcModbus []CidcModbusConfig `json:"cidcModbus" description:"联锁驱采Modbus接口配置"` Radar RadarConfig `json:"radar" description:"车载雷达相关配置"` Acc AccConfig `json:"acc" description:"车载加速计"` + PcSimConfig VehiclePCSimConfig `json:"pcSimConfig" description:"车载pc仿真平台通信"` } type RadarConfig struct { Open bool `json:"open" description:"是否开启"` @@ -168,6 +169,13 @@ type RsspConfig struct { 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 检测目标源地址目的地址是否在配置中 func (c *RsspConfig) CheckAddress(srcAddr uint16, dstAddr uint16) bool { return true