Commit Graph

2990 Commits

Author SHA1 Message Date
Adeeb Shihadeh
cc8e705d7c include mazda safety mode in release build 2021-10-30 15:42:02 -07:00
martinl
27998ee3ac fix subaru legacy rx check (#756) 2021-10-30 15:33:50 -07:00
Adeeb Shihadeh
2e5de6e99c Mazda: CAN ignition (#758) 2021-10-30 15:32:27 -07:00
Adeeb Shihadeh
bf77a0b20c Mazda: only allow cancel while controls not allowed (#757) 2021-10-30 12:38:26 -07:00
Adeeb Shihadeh
da4efd21c4 Mazda: allow sending HUD alerts (#754) 2021-10-29 23:39:38 -07:00
Adeeb Shihadeh
1fc38fc165 update pre-commit hooks (#755)
* update pre-commit hooks

* Update requirements.txt

* Update .pre-commit-config.yaml

* Update rigol.py
2021-10-29 16:41:12 -07:00
Adeeb Shihadeh
0d4e98f605 Mazda: only check ACC state for controls allowed (#753) 2021-10-29 12:12:53 -07:00
Adeeb Shihadeh
5f5f30eedc remove forwarding from python lib 2021-10-29 11:18:42 -07:00
Adeeb Shihadeh
a01ef1f7c9 safety: check relay malfunction in common TX hook (#752)
* don't check relay malfunction in car safety tx hooks

* check in safety

* fix tests
2021-10-29 11:16:27 -07:00
Adeeb Shihadeh
ad36028a5b safety: check relay malfunction outside of fwd hook (#750)
* safety: check relay malfunction outside of fwd hook

* fix tests

* move to safety
2021-10-29 10:59:05 -07:00
Adeeb Shihadeh
1b0295a3ef remove USB command for bus forwarding (#749) 2021-10-28 23:40:11 -07:00
Willem Melching
06ec4331f4 small docs tweaks 2021-10-27 11:54:15 +02:00
Adeeb Shihadeh
0cc5ec33e4 fix build apth 2021-10-25 16:14:24 -07:00
Adeeb Shihadeh
def8558e3d fix safety replay 2021-10-25 16:08:49 -07:00
Adeeb Shihadeh
ba749ddf25 libpandasfaety: don't build at import time 2021-10-25 16:05:20 -07:00
Igor Biletskyy
f1edfdd6f8 fix test_bulk_write (#745)
* fix bulk test

* 2sec is not enough for 20k messages per bus

* ...
2021-10-21 18:44:03 -07:00
Igor Biletskyy
7e5a4e928a Fix bug in safety tests (#740)
* Fix bug in safety tests

* Temporary skip error

* glitch

* Robbe's suggestion

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
2021-10-19 11:23:01 -07:00
Igor Biletskyy
cf804d65d2 fix MISRA test bug and coverage (#743) 2021-10-18 22:04:14 -07:00
Greg Hogan
80260c6bcc expose TX messages blocked by safety hook (#742)
* expose tx messages blocked by safety hook

* update unit tests

* preserve bus of original message

* update tests
2021-10-18 12:26:24 -07:00
Greg Hogan
c5adfa4ece Fix bulk transfer dropping messages sometimes (#729)
* fix max messages per bulk transfer

* retry on partial send

* need 2x the packet size for some reason

* improve bulk write test
2021-10-15 18:14:55 -07:00
Adeeb Shihadeh
f5c7e1ada1 update python to 3.8.10 2021-10-13 22:18:33 -07:00
Robbe Derks
2352dab2f4 flake8 master doesn't exist anymore 2021-10-12 22:19:57 +02:00
Greg Hogan
288cbf65d1 uds: update security access and i/o control services (#738) 2021-10-10 00:45:59 -07:00
Brandon Bennett
5cb427a062 updated: ruby homebrew installer deprecated. (#736) 2021-10-08 17:43:22 +02:00
Robbe Derks
e3dd1622c3 add get_usb_serial() 2021-10-08 12:17:06 +02:00
Robbe Derks
d5ddd4a03e added is_internal() 2021-10-08 12:10:28 +02:00
Igor Biletskyy
a292d8f09d Increase data element size for STM32H7 CAN FD TX/RX buffers (#735)
* Change CAN element data size and quantity

* check this way

* ...

* Get ready for CAN FD

* fix MISRA
2021-10-07 11:19:25 -07:00
Igor Biletskyy
87f81b96a5 Move CAN buffers rx_q and txgmlan_q to RAM D1 on STM32H7 (#734)
* Add RAM D1 to linker script

* Check idea with bigger buffers

* Move rx_q and txgmlan to RAM D1 on H7
2021-10-07 11:07:19 -07:00
Igor Biletskyy
0aed173fb5 Build panda for both target mcpus (#732)
* Edit SCons

* No need for H7 env

* also build panda when building pedal

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-04 12:13:29 +02:00
Robbe Derks
1808dca51f message_drop_test: send only what hasn't been sent yet 2021-10-01 16:08:56 +02:00
Robbe Derks
c67fd935d7 fix pylint for real 2021-10-01 14:47:37 +02:00
Robbe Derks
0bdd5699f7 drop test: send in blocks 2021-10-01 14:39:39 +02:00
Robbe Derks
8e17c107b2 fix pylint 2021-10-01 13:57:44 +02:00
Robbe Derks
1d0e876e37 message drop test 2021-10-01 13:51:11 +02:00
Robbe Derks
4bfa9c16f6 add jungle support to bulk test 2021-10-01 12:39:05 +02:00
martinl
92f6a9bb1d Misra artifacts upload (#731)
* Update misra artifact upload workflow

* Update misra artifact upload filenames
2021-09-30 21:47:14 +02:00
martinl
5ab46ab70a Subaru Global: use better brake pressed signal (#651)
* Change Subaru Global brake_pressed signal to Brake_Status Brake

* Change safety test to use Brake_Status Brake

* Use GET_BYTE for brake_pressed

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-28 21:26:04 -07:00
Alfonso Hernandez
9062d93f50 VW PQ: use Bremse_3 for ego speed (#730)
* Change VW PQ speed RX from Bremse_3 to Bremse_1

* Removed MSG_BREMSE_3 definitions since message is not used anymore
2021-09-27 09:39:59 -07:00
Greg Hogan
7e99d5245f expose DEBUG flag and improve debug console output (#728)
* expose debug flags and improve debug console output

* puth4

* other flags need to be set more locally

* fix misra violations

* fix misra violation

* fix misra violation
2021-09-25 21:46:19 -07:00
Greg Hogan
fcd064345a python: disable power save by default when setting safety mode (#725)
* python: disable power save by default when setting safety mode

* no need to set power save manually

* Update python/__init__.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-23 23:12:36 -07:00
Greg Hogan
2570770f7b UDS: add response pending timeout (#723)
* Extend ISO-TP subsequent frame timeout, add response pending timeout and extra debug info

* Change response_pending to local variable, move response_pending_timeout to UdsClient, update ISO-TP debug output

* Set UDS request pending timeout to 6 seconds (ISO 14229-2:2013 section 7.2 recommended value + 1 second latency)

* manage response pending in single location

* more generous response pending timeout

* add tx timeout

* fix lint error

* fix rx addr for 29 bit addrs

* fix linting issue

Co-authored-by: Martin Lillepuu <martin@mlp.ee>
2021-09-23 18:21:21 -07:00
Adeeb Shihadeh
85e896f116 gate honda bosch and hyundai long behind debug flag (#719) 2021-09-15 11:23:41 -07:00
Willem Melching
dd22fafc3c Hyundai longitudinal (#711)
* Hyundai longitudinal

* return right addr checks

* add flag to pythong

* fix define

* check for stock ecu

* add rx check for buttons

* Block FCA11 actuation

* misra

* review 1

* comment about scaling

* clean up buttons

* use define for flag

* more extensive button checking

* check for AEB in scc12

* unsigned

* add knockout tests

* more unsigned

* cleaner
2021-09-13 20:41:10 -07:00
Dange
1befaad8b0 Fix assert error when flashing release (#717) 2021-09-10 08:19:13 -07:00
Willem Melching
fb8f452d68 Try resuming outep3 on can buffer clear (#716)
* try resuming outep3 on can buffer clear

* simplify

* more cleanup

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
2021-09-08 10:59:00 -07:00
Adeeb Shihadeh
fb890465d5 enable siren if controls allowed within 30s of lost heartbeat (#715)
* enable siren if controls allowd within 30s of lost heartbeat

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2021-09-07 15:19:42 -07:00
Willem Melching
d1b104950a Toyota: always allow -3.5 to 2.0 m/s^2 according to ISO 15622:2018 (#714) 2021-09-06 16:36:30 -07:00
Willem Melching
a723686fe2 Make all tx/rx LENs a define (#713) 2021-09-03 17:39:09 -07:00
Willem Melching
30ec981a6a fix Hyundai legacy rx checks (#712)
* fix hyundai legacy rx checks

* set there
2021-09-03 12:13:56 -07:00
Willem Melching
8ba9b7cd37 support using safety mode param to control rx checks (#709)
Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
2021-09-03 11:45:17 -07:00