Panda safety code for Volkswagen, Audi, SEAT, and Škoda (#293)

* Panda safety code for Volkswagen, Audi, SEAT, and Škoda.

* First pass at MISRA compliance.

* Second pass at MISRA compliance.

* Fix scope of violation boolean.

* MISRA doesn't care for implicit cast of unsigned int to boolean.

* Remove superfluous newline.

* Remove unused VW ignition hook code, preserve commentary.

* Add 50% padding to max delta check.

* Add 50% padding to max delta check.

* Add clarity around the origin of our safety constants.

* Update test RT delta to match safety.
This commit is contained in:
Jason Young
2019-10-09 16:54:22 -04:00
committed by rbiasini
parent 30c7ca8a53
commit 2f9e076289
6 changed files with 387 additions and 0 deletions

View File

@@ -124,6 +124,7 @@ class Panda(object):
SAFETY_SUBARU = 11
SAFETY_GM_PASSIVE = 12
SAFETY_MAZDA = 13
SAFETY_VOLKSWAGEN = 15
SAFETY_TOYOTA_IPAS = 16
SAFETY_ALLOUTPUT = 17
SAFETY_GM_ASCM = 18