Car safety: custom safety params (#75)

* init

* use latest opendbc pr ref
This commit is contained in:
Jason Wen
2025-03-15 17:19:30 -04:00
committed by GitHub
parent 5479e1572a
commit ccb9581b1c
3 changed files with 4 additions and 3 deletions

View File

@@ -710,8 +710,8 @@ class Panda:
# ******************* configuration *******************
def set_alternative_experience(self, alternative_experience):
self._handle.controlWrite(Panda.REQUEST_OUT, 0xdf, int(alternative_experience), 0, b'')
def set_alternative_experience(self, alternative_experience, safety_param_sp=0):
self._handle.controlWrite(Panda.REQUEST_OUT, 0xdf, int(alternative_experience), int(safety_param_sp), b'')
def set_power_save(self, power_save_enabled=0):
self._handle.controlWrite(Panda.REQUEST_OUT, 0xe7, int(power_save_enabled), 0, b'')