Commit Graph

388 Commits

Author SHA1 Message Date
Riccardo
594863cea3 Hyundai: added initial safety files which just fwd bus 0 to 2 and viceversa, except for lkas msgs 2018-08-17 21:31:00 -07:00
Riccardo
905a93583a fixed pedal and legacy board builds: no float support 2018-08-14 15:55:47 -07:00
Riccardo
0a480ec20e moved interpolate function to safety header 2018-08-13 22:52:31 -07:00
Adam Urban
f9a46e3646 Match safety order from master
This will cause a merge conflict with the tesla branch.
2018-08-02 14:13:57 -04:00
Adam Urban
aafbe05815 GMLAN GPIO Rebase 2018-08-02 12:39:53 -04:00
George Hotz
37df290a13 rename to gmlan_alt 2018-08-02 08:58:07 -07:00
rbiasini
98b71f3af1 Toyota safety: added support for camry and chr (#127)
* Toyota safety: added support for dsu-less Toyotas (Camry and C-HR)
2018-07-24 17:04:03 -07:00
Riccardo
ba8762d5a3 Toyota safety: vars and consts need 'toyota_' prefix 2018-07-17 19:43:06 -07:00
Riccardo
1a94543a22 Panda safety: minor generalization of the function max_limit_check 2018-06-20 18:34:31 -07:00
Riccardo
6b316011b3 Safety: minor data type cleanup 2018-06-20 18:19:08 -07:00
Commaremote
0dcd84d791 Toyota safety: integer division bug 2018-06-16 19:04:30 -07:00
George Hotz
9a268f333e Toyota Safety: cleaner var types 2018-06-16 18:09:17 -07:00
George Hotz
8efa389745 detect ack 2018-06-15 16:54:01 -07:00
George Hotz
f5fab4b42a nicer err 2018-06-15 16:46:10 -07:00
George Hotz
ad4d4231d2 add gmlan fail count 2018-06-15 16:37:04 -07:00
George Hotz
998f7c0103 oops, set recessive 2018-06-15 16:23:22 -07:00
George Hotz
80051bea09 autoretry on chime 2018-06-15 16:21:53 -07:00
Riccardo
813218deae GM: allowing higher brakes in Volt, so decel can reach between 3 and 3.5 m/s2 2018-06-14 14:12:16 -07:00
Commaremote
74ad3d65c2 GM: max param definitions 2018-06-14 12:58:45 -07:00
rbiasini
38a9ea9ad9 added gm safety for steering (#123)
* added gm safety for steering
* safety tests done for safety_gm
2018-06-13 23:13:59 -07:00
Riccardo
bf5db45ab1 Safety: made the driver steer check common so it can be shared across multiple safety files 2018-06-13 15:23:56 -07:00
Commaremote
ef079e6da9 Safety: made rate limit check also common 2018-06-13 01:37:36 -07:00
Commaremote
dc3cc240b9 Safety: made common the max torque check as well 2018-06-13 01:11:32 -07:00
Commaremote
dbc3568a1b removing extra spaces 2018-06-13 00:57:36 -07:00
Commaremote
1966bdf348 Safety: made real time rate limit check a shared function 2018-06-13 00:56:29 -07:00
George Hotz
e21447765e use timer for can bitbanging 2018-06-11 10:06:10 -07:00
George Hotz
cb927337da minor bitbang refactor 2018-06-11 09:06:15 -07:00
George Hotz
ed2920cf8a support extended addressing in canbitbang 2018-06-11 09:02:11 -07:00
George Hotz
36df0996c5 move speed 2018-06-10 23:54:06 -07:00
George Hotz
7edc88e54b put that back 2018-06-10 23:50:50 -07:00
George Hotz
fa66e4b785 Revert "handle rollover"
This reverts commit 2ce3a26ab9.
2018-06-10 23:50:32 -07:00
George Hotz
2ce3a26ab9 handle rollover 2018-06-10 23:47:44 -07:00
George Hotz
223a1fb68f cleanin it up 2018-06-10 23:40:58 -07:00
George Hotz
d917386bf8 bitbanging works 2018-06-10 23:29:20 -07:00
George Hotz
74af4417db can crc 2018-06-10 23:11:29 -07:00
George Hotz
932d727867 bit stuffing support 2018-06-10 22:52:53 -07:00
George Hotz
be22522714 bros ok match bros 2018-06-10 16:48:53 -07:00
George Hotz
a577583530 working on gmbitbang 2018-06-10 16:23:54 -07:00
Riccardo
875c2bd312 Cadillac: block OP messages if OP is on 2018-06-08 18:33:30 -07:00
Ted Slesinski
7caba241d0 Addition to Bosch safety to support Hatchback (#111)
* Addition to Bosch safety to support Hatchback

The computer brake is shown on 0x17c sensor on Accord and CR-V. We assumed all Bosch Hondas had the new 0x1be message which reports manual brake, but Civic Hatchback is not like this- It doesn't have this message and 0x17c works like the other Hondas so we are are passing a parameter from Openpilot for this.

* Renamed variable

* Make comment more descriptive

* Added safety check for cancel-only spamming

* Add regression test for brake on accord and crv

Init with bosch safety variables

Some more testing changes (still broken)

Make second test work

* Adds one more ttest

* Cannot implicitly convert type 'int' to 'bool '

* ok to spam resume if controls_allowed==true

* need to use current_controls_allowed. Still need to fix the message blocking

* checking for bus 0 on button spam

* better to use the car name in front of global vars

* even better name and fixed safety tests
2018-06-06 14:20:07 -07:00
George Hotz
63ca46bc24 modify before we forward 2018-06-06 13:46:12 -07:00
Commaremote
bf70f51596 Safety: increase buffer for sampled signals. TBD a violation feedback from board to prevent car faults 2018-06-03 17:39:57 -07:00
Commaremote
b0541a8316 Cadillac: monitoring the 4 torque messages independently 2018-06-03 01:53:06 -07:00
Riccardo
ca0b6bebcc Cadillac: fixed typo. Need better regression tests to catch this 2018-06-02 23:27:32 -07:00
Riccardo
d9f1e61643 Cadillac: simplified the ignition code by removing the timeout logic and resetting controls_allowed = 0 at each init 2018-06-02 19:18:32 -07:00
Riccardo
293fd1ac70 GM: using real ignition logic. Creedit to Jamezz 2018-06-02 19:08:10 -07:00
Riccardo
8fa507b621 GM: simplified max steer check logic, Cadillac: fixed can parsing bug 2018-06-02 14:06:15 -07:00
rbiasini
c7e2c2d696 Cadillac (#119)
* added some steer safety to Cadillac

* bug fixes

* added cadillac full steering safety. To be tested

* RT checks and max checks working. Need to test driver torque based limits

* cadillac steer safety should be done

* unneded lines
2018-06-01 19:45:29 -07:00
rbiasini
83bcaa3980 small logic cleanup (#118) 2018-06-01 16:27:55 -07:00
Riccardo
9d92bf27c8 Cadillac: need to specify car name in const 2018-06-01 14:03:07 -07:00