Commit Graph

891 Commits (62d4219762b3e2e8bb72f819ed4465171fc1d018)

Author SHA1 Message Date
George Hotz ad4d4231d2 add gmlan fail count 2018-06-15 16:37:04 -07:00
George Hotz bb41ff753d test 2018-06-15 16:28:14 -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
AllWashedOut d8fc9ff4e8
Update tesla_tester.py 2018-06-15 12:54:37 -07:00
AllWashedOut 2a8c2c21c4
Strengthen VIN detection
Replaces a counter with a check of the dictionary contents to work around a potential bug: if the same VIN piece were received twice, it would still have incremented the counter.
2018-06-14 17:48:31 -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 be46c7a322
Merge pull request #122 from commaai/gmbitbang
Gmbitbang
2018-06-10 23:52:08 -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 1ba79077bd that space tho 2018-06-10 23:30:52 -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 55da0b654f rigol yea, dj pauly d yea 2018-06-10 16:33:34 -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 cd1dba9ff8 Cadillac: fixed bug in regression safety 2018-06-02 23:30:30 -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
Commaremote 79ab5af8c3 Toyota: moved common functions into safety header file 2018-05-31 18:49:12 -07:00
Riccardo 40c8ddaf7d Cadillac ignition: simplified logic 2018-05-30 19:49:02 -07:00
Commaremote 69be556de0 Cadillac: better ignition logic 2018-05-29 15:27:24 -07:00
Riccardo d176220c72 Ignition: made a default hook for GPIO 2018-05-25 18:20:55 -07:00
Riccardo bea51874e7 Cadillac: added max steer safety 2018-05-25 17:53:02 -07:00
Commaremote dbc11a17c1 Cadillac: always controls allowed for now 2018-05-25 14:42:18 -07:00
Commaremote ace232a91e Cadillac: ignition bug 2018-05-25 14:17:02 -07:00