Commit Graph

35 Commits

Author SHA1 Message Date
Adeeb Shihadeh
a1686ca3ca safety tests: use can packer for counters (#995)
* safety tests: use can packer for counters

* bump opendbc
2022-07-21 18:50:42 -07:00
Adeeb Shihadeh
1dfee5973b Subaru: cleanup counter handling (#992) 2022-07-19 17:18:42 -07:00
Jason Young
4ce5b5a44d VW PQ: Updated safety test checksum and counter handling (#964)
* VW PQ: Updated checksum and counter handling

* bump opendbc for Docker/CI
2022-07-15 10:49:34 -07:00
Adeeb Shihadeh
2abeab913f EV6: reject fake cruise engagements (#987)
* EV6: reject fake cruise engagements

* bump opendbc

* update comment

* raise to 8

* add addr check
2022-07-12 17:42:13 -07:00
Adeeb Shihadeh
6c0d0b43c2 Chrysler: update tests after DBC updates (#979)
* Chrysler: update tests after DBC updates

* lil cleanup
2022-07-05 16:33:12 -07:00
Shane Smiskol
4bc85ad40a Chrysler: use correct engaged bit (#973)
* use new engaged bit

* fix msg name

* update signal

* update opendbc ref
2022-06-22 14:46:25 -07:00
Shane Smiskol
26124faab7 Dockerfile: pin opendbc commit (#976)
* pin opendbc commit

* previous commit

* make env vars
2022-06-22 13:55:16 -07:00
Shane Smiskol
e1b2f1253c bump openpilot (#971) 2022-06-16 22:43:36 -07:00
Shane Smiskol
3dbd30864e Honda Civic 2022 (radarless): car safety (#942)
* civic 2022

* remove

* maybe not the right way

* Honda Radarless: add tests

* update

* different bus

* other bus

* Revert "other bus"

This reverts commit 691e045f8724e57f135ad8d1683e83acbc16b91f.

* add new HUD message

* add

* different bus

* correct freq

* small updates

* comma

* remove

* remove for now

* missing

* not needed

* make into a safety param and clean up

* this can be reverted

* clean up tests (something's broken)

* fix some errors

* this message doesn't exist on any bus

* this car doesn't have BRAKE_MODULE

* make safety more explicit and fix button safety

* fix some tests

* fix tests

formatting

clean up

* radarless uses SCM_FEEDBACK too

* fix tx msgs, clean up, make test common between bosch tests

* misra

* Fix python linting errors

add comment

* not sure where that came from

* add comments

add comments

* we can guarantee honda_bosch_long is true only if not radarless

* these are the same! 🎉

* use updated route with correct tx msgs

* helper pt bus function

* this is explained above

* use function

* no more blocked messages!

* bump openpilot

* comment

* line too long

* needs system

* send on bus 0

* Camera needs bus 2 for buttons

This reverts commit f90db5d359c1c952de87ea4a2127ae599306e729.

* fix button tests

* bump openpilot

* move this down

* make this explicit

* comments

Co-authored-by: vanillagorillaa <ntmccoy@yahoo.com>
Co-authored-by: vanillagorillaa <31773928+vanillagorillaa@users.noreply.github.com>
2022-06-16 19:02:44 -07:00
Adeeb Shihadeh
b6a672de5a bump openpilot (#946)
* bump openpilot

* need that too :(
2022-05-19 14:30:08 -07:00
Adeeb Shihadeh
c31cbade34 CI: fix build after 20.04 image update (#932) 2022-05-02 15:02:34 -07:00
Adeeb Shihadeh
c8f6cb0dd3 CI: add new dependencies for openpilot tools 2022-03-27 15:39:07 -07:00
Adeeb Shihadeh
7986b8b1e4 make safety replay nice 2022-03-25 20:00:44 -07:00
Igor Biletskyy
891653fe31 Docker: bump openpilot and fix Toyota EPS scale factor for test (#869)
* new commit

* fix EPS scale for Toyota
2022-03-08 18:19:59 -08:00
Adeeb Shihadeh
730155cbcd GM: use new DBC (#836)
* bump openpilot commit

* Rename GM PT dbc to generated

Co-authored-by: Jason Shuler <jshuler@gmail.com>
2022-01-24 21:13:54 -08:00
Adeeb Shihadeh
73bbf58567 Nissan Leaf: tests + new brake signal (#777)
* Update safety_nissan.h

Updated brake CAN address to 0x25e and brake pressed to byte logic

* Update safety_nissan.h

missed a change

* Update safety_nissan.h

* Update safety_nissan.h

* Update safety_nissan.h

Corrected Line 79 to pull from the "CRUISE THROTTLE" message at address 0x239, byte 4, bit 6, which gets us to the "USER_BRAKE_PRESSED" bit for comparison if the brake pedal is being pressed.

* Update safety_nissan.h

Removed duplicate 0x239 message in "AddrCheckStruct"

* Update safety_nissan.h

Just adding back 0x1cc to see if that fixes things?

* leaf safety tests

* clenaup

* bump openpilot

* Update tests/safety/test_nissan.py

Co-authored-by: Kirk Miller <kirk.miller92@gmail.com>
2021-11-12 11:59:49 -08:00
Jason Young
e9a4a2b688 VW PQ: Refactor tests to use CAN packer (#764)
* Lenkhilfe_3, Motor_2

* more Motor_2

* HCA_1

* GRA_Neu

* propitiate linter

* actually propitiate linter

* bump Docker openpilot ref
2021-11-02 23:04:19 -07:00
Adeeb Shihadeh
84e47df99d Mazda: add safety replay test route (#761)
* Mazda: add safety replay test route

* revert that

* comment

* bump openpilot
2021-10-31 22:05:14 -07:00
Adeeb Shihadeh
f5c7e1ada1 update python to 3.8.10 2021-10-13 22:18:33 -07:00
Igor
b2d28a7123 Fix MISRA 8.2 violations (#675)
* Fix violation 8.2

* Update cppcheck

* Remove inline suppressions

* Change source to upstream
2021-06-30 17:47:41 -07:00
Igor
ddc25b0611 Update cppcheck and misra, suppress for now (#663)
* Update cppcheck and misra, suppress for now

* Add FIXME to suppression tags

* Missed one spot
2021-06-18 14:24:15 -07:00
ShaneSmiskol
ad12330d50 Hyundai: add gas pressed signal for hybrids (#655)
* detect safety param and get gas pressed for PHEVs

* misra guidelines

* else no action

* use explicit safety param

* update for full test coverage

* full hyundai gas press test coverage

* panda's out of date

* update commit?

* need to check out all

* need rednose too

* works without

* override _gas_msg method for each class

* update safety

* is define okay?

* misra

* like this convention better

* convention and fixes

* bump to openpilot master

* simplify

* add to non legacy rx checks

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-10 00:21:54 -07:00
Jason Young
9108b82fb0 VW MQB: Updated message and signal data, round 1 (#632)
* EPS_01 -> LH_EPS_03

* Bump openpilot commit ref

* made echo test more stable

* update python to 3.8.5

* Revert "Bump openpilot commit ref"

This reverts commit 75ec1a0c

* Bump openpilot commit ref

* Bump openpilot commit ref

* Update Dockerfile.panda

* fixed torque signal name

* Signal naming fix, round 2

* fix CI

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-14 16:24:53 -07:00
Adeeb Shihadeh
f3cf165be0 bump openpilot 2021-03-14 14:23:01 -07:00
Adeeb Shihadeh
1fceab1ead update python to 3.8.5 2021-03-11 13:47:40 -08:00
Adeeb Shihadeh
49c7615ed3 ubuntu 16.04 -> 20.04 (#608)
* ubuntu 16.04 -> 20.04

* fix pip

* think pyenv installs this

* bump python

* non interactive

* fix pyenv install

* python serial

* bump cffi

* fix index log build

* logreader dependency
2020-10-23 23:14:58 -07:00
martinl
c55e84bf56 Change Subaru safety test to use generated dbc (#575)
* Change Subaru test to use generated dbc

* update openpilot pinned commit
2020-07-23 13:06:11 -07:00
martinl
b2c86eb66b Subaru safety refactoring (#532)
* Update subaru safety tx messages

* Add Subaru preglobal driver torque limits

* fix preglobal desired_torque

* fix subaru preglobal torque rate limit and tx messages

* readability update for desired_torque

* fix preglobal tests

* Subaru safety refactoring, added missing legacy checks and updated test

* Remove subaru_global check from tests

* Reorder legacy constants, remove subaru_init

* Update Subaru legacy safety and tests to match dbc scaling factors

* remove scaling factor from torque_driver

* Change preglobal driver torque scaling factor

* Change driver torque factor to 10

* Fix preglobal dbc name

* Fix Subaru legacy safety test

* update openpilot commit

* init valid with one line
2020-06-11 15:51:05 -07:00
Adeeb Shihadeh
f993e66b99 tools dependencies 2020-06-09 16:57:26 -07:00
Adeeb Shihadeh
9eee6ca556 update safety tests after DBC changes 2020-06-09 16:51:08 -07:00
Adeeb
35bff5db51 Speed up misra test in CI (#552) 2020-06-07 21:42:23 -07:00
Willem Melching
b8267341a1 Add pre commit checks + CI (#545)
* Add pre commit checks

* untested but should work

* fix typo in dockerfile

* add sqlite

* add pylintrc to ignore usb1 members

* Typo in stage name

* Move to requirements
2020-05-29 11:52:03 -07:00
Adeeb
07e668eca4 Fast CI (#539) 2020-05-19 12:50:32 -07:00
Adeeb Shihadeh
0d581aa5f2 dockerfile optimization 2020-05-17 21:50:11 -07:00
Adeeb
55b79b4721 GitHub Actions (#535) 2020-05-17 19:53:23 -07:00