Subaru: ES_Distance cruise cancel safety (#29362)

old-commit-hash: c8cae714c681dae9a380b1bcb7b71eeb3fdfba3d
This commit is contained in:
Justin Newberry
2023-08-13 22:14:13 -07:00
committed by GitHub
parent 1e72e9b094
commit 1ef7623ec7
2 changed files with 2 additions and 1 deletions
+1 -1
Submodule panda updated: 7dbdf6ba2b...a0344a11e7
+1
View File
@@ -43,6 +43,7 @@ def create_es_distance(packer, es_distance_msg, bus, pcm_cancel_cmd):
values["COUNTER"] = (values["COUNTER"] + 1) % 0x10
if pcm_cancel_cmd:
values["Cruise_Cancel"] = 1
values["Cruise_Throttle"] = 1818 # inactive throttle
return packer.make_can_msg("ES_Distance", bus, values)