Add hyundai legacy safety mode (#1693)

old-commit-hash: 437b974505
This commit is contained in:
Adeeb
2020-06-12 20:55:59 -07:00
committed by GitHub
parent f008dc9f61
commit 1cba78d535
2 changed files with 5 additions and 1 deletions
+1 -1
Submodule panda updated: 74c607f79a...d0442fd1e4
+4
View File
@@ -135,6 +135,10 @@ class CarInterface(CarInterfaceBase):
ret.lateralTuning.pid.kiBP, ret.lateralTuning.pid.kpBP = [[0.], [0.]]
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.25], [0.05]]
# these cars require a special panda safety mode due to missing counters and checksums in the messages
if candidate in [CAR.HYUNDAI_GENESIS]:
ret.safetyModel = car.CarParams.SafetyModel.hyundaiLegacy
ret.centerToFront = ret.wheelbase * 0.4
# TODO: get actual value, for now starting with reasonable value for