mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-26 03:12:08 +08:00
CP to carcontroller.py
This commit is contained in:
+1
-1
Submodule opendbc_repo updated: b0a6e7c14c...a409c3131f
@@ -2,13 +2,13 @@ from opendbc.car import structs
|
||||
from opendbc.sunnypilot.car.hyundai.values import HyundaiFlagsSP
|
||||
from openpilot.common.params import Params
|
||||
|
||||
|
||||
class HyundaiLongTuneParams:
|
||||
@staticmethod
|
||||
def param(params, key: str) -> bool:
|
||||
val = params.get(key)
|
||||
return val in [b"1", b"2"]
|
||||
|
||||
if isinstance(val, bytes):
|
||||
val = val.decode("utf-8")
|
||||
return val in ["1", "2"]
|
||||
|
||||
def set_hyundai_long_tune_flag(CP: structs.CarParams):
|
||||
params = Params()
|
||||
|
||||
Reference in New Issue
Block a user