Commit Graph

45 Commits

Author SHA1 Message Date
Shane Smiskol
79d5f584d8 Update Santa Fe 2019 route (#23888)
* new santa fe route, mid-drive to parking lot

* bump
old-commit-hash: 8eab496ce3
2022-03-01 13:47:53 -08:00
Adeeb Shihadeh
ca0cb66a09 Honda: revert to button enable on Nidec (#23828)
* Honda: revert to button enable on Nidec

* fix test

* bump panda
old-commit-hash: c483a9724d
2022-02-22 22:36:21 -08:00
Shane Smiskol
1cd3c05a70 Honda: fix brake pressed signal (#23683)
* or brake_switch

* remove car exceptions

* Revert "remove car exceptions"

This reverts commit cad6a552aa4a17c69616014d3e9333d30c1fadd3.

* does have ts noise, use updated

* bump panda for tests

* bump

* messsssy draft

* clean up

* clean up

* bump

* CS: process all messages at once, like we do during real openpilot usage

* handle multiple messages updated in one cycle

* bump

* bump

* use less confusing, but equivalent cp.vl

* Update selfdrive/test/test_models.py

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

* no msg

* bump opendbc

* Update selfdrive/car/honda/carstate.py

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

* same test logic

* add brake_switch_prev to class

* need to set previous brake switch when not lagging (most of the time)

* need to compare

* only update previous if updated this cycle

rm

* need to maintain previous active state

* move brake_switch

* bump opendbc

* bump

* bump

* bump

* bump

* bump

* bump

* bump opendbc

* rename

* oops

* bump opendbc

* bump

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 209bfe536b
2022-02-10 13:04:37 -08:00
Adeeb Shihadeh
3522f8dfad small test_models.py speedup
old-commit-hash: 48e97b7872
2022-02-07 16:10:20 -08:00
Adeeb Shihadeh
12dcbe8617 test car models improvements (#23668)
* run on all routes

* min segment length

* invalid

* revert that
old-commit-hash: c8429f913e
2022-01-30 11:17:51 -08:00
Adeeb Shihadeh
f4a10c631f test car models: fix all panda safety mismatches (#23616)
* remove tolerance

* fix nissan mismatches

* warm up

* remove additional bosch check

* another honda exception

* little more

* Update selfdrive/test/test_models.py
old-commit-hash: d2735d73fc
2022-01-29 22:14:27 -08:00
Adeeb Shihadeh
a96bed88da Honda: fix controls mismatch for stock PCM configs (#23662)
* Honda: fix controls mismatch for stock PCM configs

* ready to remove

* bump panda
old-commit-hash: 5219554b85
2022-01-29 17:01:26 -08:00
Jason Young
b32725c94f Chrysler: remove standstill exception for gas disengage (#23515)
* Chrysler: remove standstill exception for gas disengage

* remove test exception

* bump panda

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 57156c4482
2022-01-13 16:06:56 -08:00
Ewout ter Hoeven
a962365292 Convert format strings strings to f-strings (#23241)
* Convert all text strings to f-strings

Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

* revert pyextra changes

* revert ublox.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 55390d273f
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh
189c41a614 Merge 2021 Accords into 2018 Accords (#23174)
* Merge 2021 Accords into 2018 Accords

* last of them
old-commit-hash: 1638975627
2021-12-08 14:40:14 -08:00
Adeeb Shihadeh
dae1950ba5 test car models: add test for addr checks (#23093)
* test car models: add test for addr checks

* revert that

* add checks

* ugh broken cars

* which seg

* f

* move that
old-commit-hash: 36a13e8245
2021-12-01 17:23:49 -08:00
Adeeb Shihadeh
73cfd04ec9 test car models: ignore more fake buses
old-commit-hash: d78be47a90
2021-11-30 21:52:44 -08:00
Adeeb Shihadeh
89eb02fee4 Bring back Accord 2021 + 2021 Hybrid (#23021)
Co-authored-by: Chris Souers <csouers@gmail.com>
old-commit-hash: 239c7c1d4e
2021-11-23 23:19:11 -08:00
Adeeb Shihadeh
4249c77159 test car models: verify panda and carState's ACC main on match (#22979)
old-commit-hash: cfdeeff3fd
2021-11-19 15:07:16 -08:00
Adeeb Shihadeh
ab9019e57f test car models: only check cruise state on PCM cruise cars
old-commit-hash: 2723cc6cf8
2021-11-18 20:42:48 -08:00
Adeeb Shihadeh
d9008f85ae test car models: support disable radar cars
old-commit-hash: 01c2a0a211
2021-11-18 19:59:30 -08:00
Adeeb Shihadeh
211fc86ae5 CI: fix test car models bug
old-commit-hash: 9e1ee72a91
2021-11-18 14:40:59 -08:00
Willem Melching
0b8d611b10 ci: run test car models in matrix (#22884)
* Run test car models in matrix

* cache key per job

* actually cache files

* ci

* make files readable

* actually expose variables

* fix quote

* get cache unstuck

* ro cache can use more prefixes

* ci
old-commit-hash: 264c5f4e61
2021-11-12 19:50:15 +01:00
Robbe Derks
58c99158a1 Make pandaState and safetyMode a list (#22454)
* wip: move to pandaStates

* bump cereal

* wip: SafetyMode struct

* move to safetyMode

* fix typo

* this can be None

* fix potential empty pandaStates list

* fix thermald

* fix controlsd

* rename safetyModes to safetyConfigs

* update process_replay

* fix test_models

* bump cereal
old-commit-hash: 91987f38d4
2021-10-08 17:54:34 +02:00
vanillagorillaa
1349e159e7 Honda e Port (#22108)
* Honda e Port

* Test route for Honda e

* remove

* Update README.md

* update values based on logs

* no need for Honda e specific DBC

* fix tests

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: bcb8a11d7f
2021-09-07 16:46:44 -07:00
Adeeb Shihadeh
984fc2008d handle missing routes better in test car models
old-commit-hash: 81006b03c2
2021-09-06 19:21:06 -07:00
Adeeb Shihadeh
b3e3708dbc Revert 2021 Accord (#22063)
* bump panda

* Revert "Car Port: 2021 Accord 2.0 Touring & Hybrid Touring (#22007)"

This reverts commit b305a94049606c7a92aebf0e50dc21eda58aa017.

* revert release notes

* bump panda
old-commit-hash: 4be956f886
2021-08-28 21:28:14 -07:00
Adeeb Shihadeh
3c4005ed10 Car Port: 2021 Accord 2.0 Touring & Hybrid Touring (#22007)
* Add 2021 Accord 2.0 Touring & Hybrid Touring

- Create the HONDA_BOSCH_EXT set for HONDA_BOSCH cars that utilize the new extended IDs for LKAS_HUD

* Remove ids added to the wrong car

* add comment

* fix undefined signal

* fix tests

Co-authored-by: Chris Souers <csouers@gmail.com>
old-commit-hash: 7e53a42984
2021-08-22 12:50:58 -07:00
Adeeb Shihadeh
691ea8553f deprecate CP.enableCamera (#21509)
* deprecate CP.enableCamera

* more removal

* one more

* update refs
old-commit-hash: c72d163e14
2021-07-07 14:59:18 -07:00
ShaneSmiskol
39e347a837 Add missing Chrysler routes (#21074)
* Add missing Chrysler models

* always skip problem chryslers for now (above 150 threshold)

* test if chrysler or jeep

* use carName...properly!
old-commit-hash: f50a13035a
2021-05-29 00:02:04 -07:00
ShaneSmiskol
fa75ee24f2 Clean up test_routes file (#21056)
* remove no enableCamera routes and add to missing

* use a named tuple

* split makes by \n, fix reference to routes

* Update selfdrive/test/test_routes.py

* Update selfdrive/test/test_routes.py

* Update selfdrive/test/test_routes.py

* Update selfdrive/test/test_routes.py

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

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e7afb26203
2021-05-27 15:29:48 -07:00
ShaneSmiskol
c2b41b8b55 Add missing Hondas and Toyotas to tests (#21044)
* Add new route for Acura ILX

* Add Lexus RXH

* Add CRV Hybrid route

* Add Insight route

* update sync script

* Add Avalon route with rlogs

* Update CRV route

* Update Pilot 2019 route

* Add Camry Hybrid 2018 route

* Add 2017 Highlander

* Add 2018 Highlander Hybrid

* Add TSS2 Highlander Hybrid

* Add Accord Hybrid

* Repalce old Accord

* Update Lexus RXH route with logs, CHR+H, skip Avalon for now (fixup in another PR)

* Add CRV

* How did I miss this!

* add exception for CRV Hybrid

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 997319fac1
2021-05-27 12:20:14 -07:00
Willem Melching
2c8e65a90d Remove unnecessary trim levels from car name (#20815)
* remove unnecessary trim levels from car name

* remove hardcoded strings

* fix process replay

* more fixes

* fix migration

* update ref
old-commit-hash: 7a8f61f4bf
2021-05-04 09:24:24 -07:00
Shane Smiskol
1846ddbc14 Update route for 2017 Corolla (#20793)
old-commit-hash: 5f61cd0531
2021-05-02 00:05:59 -07:00
Adeeb Shihadeh
caccd0f239 update test routes (#20772)
old-commit-hash: ee5bbcb53c
2021-04-28 17:19:58 -07:00
Adeeb Shihadeh
5eb4b526c4 Check panda safety against CarState (#1995)
* check panda safety against CarState

* filter out bad honda routes

* bump a bit more
old-commit-hash: 7f16554ee3
2021-04-25 15:32:05 -07:00
Adeeb Shihadeh
df17f65c61 cleanup car tests (#20562)
* cleanup test_car_models

* don't fail on that
old-commit-hash: 7e632900e5
2021-04-01 16:46:08 -07:00
Jason Young
61a562c717 VW MQB: Misc bugfixes and cleanup (#20540)
* Add LDW->SWA signal pass-through

* GC currently unused ACC_06 and LDW_02 signal data

* Split out Jetta GLI

* Pass in camera CAN parser now that we use it

* GC unused CarController param, camelCase->PEP8

* CAN valid should pass for VW now

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e181fd7f0a
2021-03-30 13:59:17 -07:00
Willem Melching
4bd1929d2b LateralPlanner should only compute curvature (#20289)
* get curvature from planner

* no need to check active

* remove that

* remove self

* liveParams not needed

* cast

* fix test bug

* fixes

* fix ui.py

* fix radians

* update refs

* update refs

* bump cereal

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c23ec9f753
2021-03-11 21:08:51 -08:00
Adeeb Shihadeh
05eb44115e cereal cleanup part 2 (#20092)
* car stuff

* thermal

* Revert "car stuff"

This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.

* panda state

* camera stuff

* start deg

* most is building

* builds

* planner + controls run

* fix up paramsd

* cleanup

* process replay passes

* fix webcam build

* camerad

* no more frame

* thermald

* ui

* paramsd

* camera replay

* fix long tests

* fix camerad tests

* maxSteeringAngle

* bump cereal

* more frame

* cereal master
old-commit-hash: 312b681a46
2021-02-16 21:39:32 -08:00
Adeeb Shihadeh
966945880b Cereal cleanup (#20003)
* start cleanup

* fan speed

* cleanup dm

* fix cereal

* hwType -> pandaType

* update refs

* update refs

* bump cereal

* freeSpacePercent

* cereal master
old-commit-hash: 000bd226aa
2021-02-03 19:57:30 -08:00
Igor
b1c6f804e5 Add indi breakpoints (#19664)
* Added BP, V to latcontrol_indi

* hyundai

* toyota

* Tests for INDI outerLoopGain
old-commit-hash: 0a65e87394
2021-01-07 15:55:46 +01:00
Adeeb Shihadeh
f25cec394e grey panda is unsupported (#2458)
old-commit-hash: 47c21f10f5
2020-11-03 19:56:25 -08:00
Adeeb Shihadeh
fd1078a548 second segment is ok for car unit tests
old-commit-hash: c8f5281c4d
2020-08-06 14:34:42 -07:00
Adeeb Shihadeh
dc5a5160d8 Add missing chrysler can parser checks (#1967)
* add missing chrysler can parser checks

* toyota

* toyota cam

* toyota freqs

* chrysler freqs

* doors

* just chrysler for now

* update refs

* update again
old-commit-hash: 1e44b99478
2020-08-02 18:11:42 -07:00
Adeeb Shihadeh
1644e81dfb Add frequency check to hyundai camera can parser (#1965)
old-commit-hash: e10376f1ae
2020-08-02 11:17:18 -07:00
Adeeb Shihadeh
2f1d9daa9a Run CI tests in parallel (#1962)
* run car model unit tests in parallel

* remove refs to deleted file

* run with coverage

* that wasn't necessary

* as builder

* need a new route for this one too
old-commit-hash: 9ee1cc9b82
2020-08-02 00:30:09 -07:00
Adeeb Shihadeh
fd97dfbdd2 Test can valid in car unit tests (#1961)
* check can invalid

* remove bad lexus is route

* blacklist routes from before cam forwarding

* fix rav4 route with missing first segment
old-commit-hash: e89b2b8453
2020-08-01 22:38:19 -07:00
Adeeb Shihadeh
fefe79bedb fail new car model unit tests if missing a test route
old-commit-hash: 63e4aeac9f
2020-07-28 23:37:53 -07:00
Adeeb Shihadeh
dbdcaef1a1 Test Car Models 2.0 (#1903)
* start with radar interface

* car interface

* panda safety rx check

* check panda safety inits

* check NO_RADAR_SLEEP in all radar interfaces

* sonata 2019 and kia optima should use hyundai legacy safety

* check radar errors

* check radar can errors

* real fingerprint

* run in CI

* it shoud pass now

* ignore old openpilot msgs

* ensure safety mode is set

* sort can msgs

* filter out openpilot msgs
old-commit-hash: 99106fd9c4
2020-07-25 02:27:56 -07:00