mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 23:12:04 +08:00
Subaru: ES_Distance cruise cancel safety (#29362)
This commit is contained in:
+1
-1
Submodule panda updated: 7dbdf6ba2b...a0344a11e7
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user