mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-15 03:53:43 +08:00
Merge branch 'devel-en' into devel-zhs
This commit is contained in:
@@ -94,9 +94,9 @@ def fingerprint(logcan, sendcan, has_relay):
|
|||||||
done = False
|
done = False
|
||||||
|
|
||||||
if params.get("DragonCacheCar", encoding='utf8') == "1" and params.get("DragonCachedFP", encoding='utf8') != "" and params.get("DragonCachedModel", encoding='utf8') != "":
|
if params.get("DragonCacheCar", encoding='utf8') == "1" and params.get("DragonCachedFP", encoding='utf8') != "" and params.get("DragonCachedModel", encoding='utf8') != "":
|
||||||
car_fingerprint = pickle.loads(params.get("DragonCachedModel", encoding='utf8'))
|
car_fingerprint = pickle.loads(params.get("DragonCachedModel"))
|
||||||
finger = pickle.loads(params.get("DragonCachedFP", encoding='utf8'))
|
finger = pickle.loads(params.get("DragonCachedFP"))
|
||||||
vin = pickle.loads(params.get("DragonCachedVIN", encoding='utf8'))
|
vin = pickle.loads(params.get("DragonCachedVIN"))
|
||||||
done = True
|
done = True
|
||||||
|
|
||||||
while not done:
|
while not done:
|
||||||
|
|||||||
@@ -194,10 +194,11 @@ class CarController():
|
|||||||
gasPressed = CS.pedal_gas > 0
|
gasPressed = CS.pedal_gas > 0
|
||||||
else:
|
else:
|
||||||
gasPressed = CS.user_gas_pressed
|
gasPressed = CS.user_gas_pressed
|
||||||
|
dragon_apply_brake = apply_brake
|
||||||
if self.dragon_allow_gas and gasPressed:
|
if self.dragon_allow_gas and gasPressed:
|
||||||
apply_brake = 0
|
dragon_apply_brake = 0
|
||||||
apply_gas = 0
|
apply_gas = 0
|
||||||
can_sends.append(hondacan.create_brake_command(self.packer, apply_brake, pump_on,
|
can_sends.append(hondacan.create_brake_command(self.packer, dragon_apply_brake, pump_on,
|
||||||
pcm_override, pcm_cancel_cmd, hud.fcw, idx, CS.CP.carFingerprint, CS.CP.isPandaBlack))
|
pcm_override, pcm_cancel_cmd, hud.fcw, idx, CS.CP.carFingerprint, CS.CP.isPandaBlack))
|
||||||
self.apply_brake_last = apply_brake
|
self.apply_brake_last = apply_brake
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user