Tesla longitudinal safety (#737)

* tesla safety cleanup + long WIP

* more long safety

* longitudinal safety tests

* fix misra

* add safety for main bus DAS_control

* acc_state is not enabled

* fix tests

* we don't want this

* fix Tesla common test
This commit is contained in:
Robbe Derks
2021-11-18 13:50:10 +01:00
committed by GitHub
parent fec966d6fd
commit ddb3698f9b
4 changed files with 173 additions and 60 deletions

View File

@@ -236,6 +236,8 @@ class Panda(object):
FLAG_HYUNDAI_EV_GAS = 1
FLAG_HYUNDAI_HYBRID_GAS = 2
FLAG_HYUNDAI_LONG = 4
FLAG_TESLA_POWERTRAIN = 1
FLAG_TESLA_LONG_CONTROL = 2
def __init__(self, serial=None, claim=True):
self._serial = serial