Support for manually configured network location

x-archive-community-master-merge
Jason Young 5 years ago
parent 39aade99ae
commit 85be983e25
  1. 11
      selfdrive/car/volkswagen/interface.py

@ -52,9 +52,14 @@ class CarInterface(CarInterfaceBase):
ret.lateralTuning.pid.kiV = [0.2]
tire_stiffness_factor = 1.0
# Determine installed network location by checking for radar-camera
# sensor fusion messages on bus 1.
if 0x238 in fingerprint[1]:
# Determine installed network location.
params = Params()
manual_network_location = params.get("ForceNetworkLocation", encoding='utf8')
if manual_network_location == "camera":
ret.networkLocation = NWL.fwdCamera
elif manual_network_location == "gateway":
ret.networkLocation = NWL.gateway
elif 0x238 in fingerprint[1]:
ret.networkLocation = NWL.fwdCamera
else:
ret.networkLocation = NWL.gateway

Loading…
Cancel
Save