Commit Graph

257 Commits

Author SHA1 Message Date
martinl 6a000279ad Add preglobal Subaru Forester and Outback (#1993)
* Add preglobal Forester and Outback

* Tests and values cleanup

* Update units in carstate

* Remove ()

* Add OUTBACK_PREGLOBAL_2018 to non_tested_cars

* Add replay route for OUTBACK_PREGLOBAL_2018
old-commit-hash: c9adc4900b2e26d0582cb264da2e547a513de831
2020-08-10 12:31:40 -07:00
xps-genesis 83ae9ef377 Car Port: Hyundai Genesis G70 2018 (#2000)
* Car port Genesis G70

* Car port G70

* rebase

* update G70 car port

* Update README.md

* no space

* rebase mistake

* Update values.py

* Update values.py

* Update values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a16a948f9ee434c69a72f8aac39405a14ba62073
2020-08-08 22:20:25 -07:00
Adeeb Shihadeh 37f8ca00aa Improve CPU usage test reliability (#2002)
* run phone tests in parallel

* better cpu test

* re-enable test

* no root

* terms version

* not one

* yes

* debug

* that's coverd by min cpu percent
old-commit-hash: ecf0a8c8d49dddb18767d929d381f5bbf946c5d8
2020-08-08 20:59:32 -07:00
Adeeb Shihadeh 755c21f05c update_ci_routes.py: upload route by arg
old-commit-hash: cea8b9e67a34d39716f4be1e8be64e7aa8fca306
2020-08-08 14:30:31 -07:00
Adeeb Shihadeh c4ce441026 Remove non-SCC Hyundai Kona port (#1997)
old-commit-hash: 5e82578a1b66a1e13753d2258f32950aece48942
2020-08-08 11:48:16 -07:00
martinl 0aeae7d81e Subaru pre-global: add support for Subaru Legacy 2015-18 (#1805)
* Add support for Subaru Legacy 2015-18

* syntax fix

* Add Legacy 2018 FPv1

* Add Subaru Ascent from upstream

* Use GLOBAL_CAR and LEGACY_CAR lists

* Change LEGACY_2015 to LEGACY_PREGLOBAL

* Add LEGACY_CAR to carstate

* Change LEGACY_2015 to LEGACY_PREGLOBAL in test_car_models

* Add missing SafetyModel to Ascent

* Use GLOBAL_CAR and LEGACY_CAR to set safetyModel

* Change LEGACY_CAR to PREGLOBAL_CARS, remove GLOBAL_CAR

* Fix PREGLOBAL_CARS in carstate and subarucan

* Minor cleanups

* Add accelCruise button event

* Change Preglobal Driver Torque limit to match Global

* Match comments to upstream

* Use Steer_Warning and Steer_Error_1 only for Global

* Change mph units to match upstream values

* Increase Preglobal brakePressed  threshold to 2

* Add DashcamOnly to LEGACY_PREGLOBAL

* Fix typo in variable name

* Update README, add create_preglobal_steering_control

* cleanup carcontroller

* cleanup values

* missed that one

* Update STEER_STEP

* Update STEER_MAX

* Add preglobal signal frequency checks

* remove PREGLOBAL_CARS from subarucan

* Remove whitespace

* Use common frequency checks

* cleanup carstate

* cleanup subarucan

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e37b8e5d5632a7cc48326f7ca162ef87f259e526
2020-08-06 21:55:13 -07:00
Adeeb Shihadeh 3dccc7fc2e Updater tests (#1974)
* refactor exit handling

* test update

* more reliable?

* better

* init git in CI

* testy tester

* CI should work

* test overlay reinit

* only one

* still need to fix loop test

* more patience

* more patience in CI

* no ping in CI

* this is cleaner

* need to run these in jenkins

* clean up

* run in jenkins

* fix test file path

* it's a git repo now

* no commit

* reinit

* remove duplicate

* why not git

* la

* git status

* pythonpath

* fix

* no CI fro now

* check overlay consistent

* more tests

* make more changes in the update commit

* sample

* no k
old-commit-hash: fe18a014c7845b5e81738b0be716d256aeb00d78
2020-08-06 21:49:05 -07:00
HaraldSchafer 388274d494 Track calib spread (#1988)
* add calib spread metric

* add field

* needs to be array

* update refs

* log valid blocks too

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d097abeb2130fc841571b14551eeea2acaa12296
2020-08-06 14:47:17 -07:00
Adeeb Shihadeh fd1078a548 second segment is ok for car unit tests
old-commit-hash: c8f5281c4d18ee68dbc5d194374bad7cd1a8a4ef
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: 1e44b99478e22d89e9b5077aa9e9d6b2aeee37dd
2020-08-02 18:11:42 -07:00
xps-genesis 5cecf53e5f Add Hyundai Veloster 2019 (#1955)
* Add Hyundai Veloster 2019

* Add Hyundai Veloster interface.py

* add route for Hyundia Veloster

* steer ratio fix

* Update interface.py

* new longer route

* space

* ignored fingerprint

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6e1bcdcb34d8361379cb2a21ea043ba331c3dabf
2020-08-02 15:45:41 -07:00
Adeeb Shihadeh 80b450e2a6 we have routes for these now
old-commit-hash: 433c9241f38d1167f0555e75902823b8a1f063be
2020-08-02 15:25:09 -07:00
Adeeb Shihadeh 1644e81dfb Add frequency check to hyundai camera can parser (#1965)
old-commit-hash: e10376f1aead6db2a40aa367dfccbb7b184abbcd
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: 9ee1cc9b828e8018fa37443d90dba95f8a032260
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: e89b2b84534e76d8965b22d2aa7451984fbf7229
2020-08-01 22:38:19 -07:00
Adeeb Shihadeh 11d808c89d fix locationd profiling
old-commit-hash: 1d7f4bc3b19d38464513c377511836221f77a95a
2020-07-30 18:24:07 -07:00
HaraldSchafer bc3b340694 Misc locationd improvements (#1714)
* I like this more

* rewind less

* bump rednose

* falling off windshield detectopr

* adjust thresholds

* this is a soft disable now

* move that

* process replay fixes

* update refs

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8e2d344135b9a1102503432d651e6bf599d9fa42
2020-07-30 15:33:22 -07:00
Adeeb Shihadeh fefe79bedb fail new car model unit tests if missing a test route
old-commit-hash: 63e4aeac9f63fac4ab7679766ac2e655c1e98a8c
2020-07-28 23:37:53 -07:00
Adeeb Shihadeh 6e7fde5d61 Revert "can't directly access sockets anymore", was supposed to be on branch
This reverts commit 1046c572b4e49608137f687263d443eab6c430f8.

old-commit-hash: acb25751b75059a6e212192064528afe0ebd5e03
2020-07-28 18:41:39 -07:00
Adeeb Shihadeh 59ade6c2f6 can't directly access sockets anymore
old-commit-hash: 6acda96a163ad77f2f0b283712ac79b3d3d90d54
2020-07-28 18:37:16 -07:00
ZwX1616 a55099ac2a EfficientNet driver monitoring (#1907)
* e96f9be6

* bump cereal

* filter sunglasses

* fix unittest

* update refs

* udpate refs

* update refs

* add tolerance for dmonitoringd

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2cfa0edb4ccc0f17fd926835de8fb966dd4d9fc3
2020-07-27 20:22:06 -07:00
Adeeb Shihadeh 9ca2bbfc40 kia stinger: use hyundaiLegacy safety mode and add test route
old-commit-hash: 360cd7d8a86460fcc339ead89c0c6a439417eb66
2020-07-26 14:09:49 -07:00
Adeeb Shihadeh 39d98d3d2d Car cleanup (#1924)
* cleanup car code

* more pruning

* little more

* less pylint disables

* radar stuff

* fix

* udpate refs

* fix honda bosch

* fix test
old-commit-hash: 892e1162c0bfa0970cbe262452a70745eccb8ba6
2020-07-25 15:07:27 -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: 99106fd9c465b366c7c61b8a0452b73455a9b96d
2020-07-25 02:27:56 -07:00
Adeeb Shihadeh 011c336047 Improve on-device CI reliability (#1922)
old-commit-hash: 90fc1c602814b87c1a09fca02e3846a332bc5e03
2020-07-25 02:12:19 -07:00
Comma Device 0e83e7617c add timeout on procLog socket for CPU usage test
old-commit-hash: 9a78378b81a66b5ea6c5f0a9c211e24210233327
2020-07-23 17:51:18 -07:00
Adeeb Shihadeh dfd9f12055 update refs
old-commit-hash: 02d5b19d4defe6c0946b86881f27dee624f128bd
2020-07-23 15:55:53 -07:00
Adeeb Shihadeh 713da21faf add test route for HYUNDAI.KIA_SORENTO
old-commit-hash: 4bc90c578aa1e229c18b62aaec6668dee9b49a84
2020-07-23 15:44:14 -07:00
Adeeb Shihadeh 1618f87f5d add HYUNDAI_GENESIS test route
old-commit-hash: f753ca14ad1ab26eb81d48b50c6672e44c81334f
2020-07-23 13:24:06 -07:00
Adeeb Shihadeh 6530890cac fix modeld replay test
old-commit-hash: 3b428fdebb3366a394b984b2778bc5a5bd8d8ed8
2020-07-22 20:17:27 -07:00
Willem Melching dcef0e394b add tolerance to process replay compare (#1904)
old-commit-hash: 5139b827af21a71a5f07719486cb168773f838fa
2020-07-22 11:50:58 +02:00
Andre Volmensky 2809e447ad Nissan: Tweaking steeringPressed/LKAS_MAX_TORQUE (#1865)
* Tweaking steeringPressed/LKAS_MAX_TORQUE

* Update ref commit
old-commit-hash: da5dc7693edc12dd281ce365a655dab56fb62494
2020-07-20 16:30:40 -07:00
ZwX1616 556752a77b Revert "EfficientNet driver monitoring (#1866)"
This reverts commit 0bc9d737dde1a50937d421f7a417260732f90480.

Need to fix test

old-commit-hash: c2be31c10be18893fbb1f45b37e34f291fa6b97d
2020-07-17 18:20:04 -07:00
ZwX1616 7a8bf9d7de EfficientNet driver monitoring (#1866)
* e96f9be6

* bump cereal

* filter sunglasses

* fix unittest

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d0e994674dcd1965bb28158d49428fb43df8902
2020-07-17 15:34:02 -07:00
Adeeb Shihadeh c374f03187 Revert modeld vipc conflate behavior and alert on dropped frame percent (#1877)
* Revert "Fix modeld dropping frames if processing takes over 50 ms"

This reverts commit fb908877a50d72e20a047bd4138316b12c8a30cc.

* track frame drop

* fix unused

* alert on frame drop perc

* reduce thresholds

* posenet is invalid on non-consecutive frames

* Refactor filter time constant

* Use vipc_dropped_frames for posenet valid check

* Actually set frame drop percentage

* Add explicit cast just to be sure

* Prevent frames dropped to go up to quickly on startup

* bump cereal

* reduce soft disable threshold to 1%

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 58c3b5ba84f6c3da3c660770148cea98c708fce5
2020-07-14 14:23:27 -07:00
Adeeb Shihadeh 76302a54dd clear scons cache dirs older than a day in CI
old-commit-hash: 897548c7efcbcc1e00740ef262449c06f9c3228f
2020-07-10 17:18:52 -07:00
Adeeb Shihadeh 197e71d7bf update refs due to carParams.communityFeature change for sonata
old-commit-hash: 80aead479eb915ff3ad46413f05904a2ebb9ce8a
2020-07-10 12:01:29 -07:00
Andre Volmensky a29579eae6 Nissan: Increase steer pressed threshold (#1833)
* Increasing steer threshold

* Update ref commit
old-commit-hash: 977a6ba46b23f0c1f52bbe59579d5c6908294f94
2020-07-09 13:50:50 +02:00
Adeeb Shihadeh 44afc4ae3c Build release2 and dashcam in CI (#1834)
* start building release2 in CI

* build script

* bring over changes from test branch

* fix build release test

* remove references to test branches

* ucnomment push

* fix duplicate remove

* two commits for dashcam

* need the key
old-commit-hash: c7156616568ce2fa780db3eafc5f912ab2ead14e
2020-07-07 14:17:09 -07:00
Adeeb Shihadeh 86200a6d6e Separate scons cache by branch (#1836)
* separate scons cache by branch

* debug

* guess you can only call CacheDir once

* remove another call

* pass git branch and commit through

* copytree

* set CI
old-commit-hash: d8ff1865450fe341f05dc6d8b6a8580eccb24f86
2020-07-07 12:36:02 -07:00
Adeeb Shihadeh b4978bafc9 Revert "build script", should've been on branch
This reverts commit 66c6a7a32a4301a4599b119098f45da04dddee46.

old-commit-hash: 6b942c94deed1467458b510215e51e263b6ba1ad
2020-07-06 20:16:16 -07:00
Adeeb Shihadeh 466ed6ac10 build script
old-commit-hash: 975ab4078636d3769a3e500c8151416a99465379
2020-07-06 20:15:38 -07:00
Adeeb Shihadeh ed5cf1fd8c show current sound name during sound test
old-commit-hash: fd504aa3f2067d403ca917efdf860b3b315bfd66
2020-07-06 19:43:42 -07:00
Adeeb Shihadeh 0d79150606 Sound test (#1820)
* WIP sound test

* it does something

* refactor

* phone only

* update release files

* test sound card init

* add to CI

* check writes

* increase time

* unused

* only build cereal

* small tolerance

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f1afb3e3ae4b95a1de0262d1408c49093c5ada6f
2020-07-05 17:56:24 -07:00
Adeeb Shihadeh 80024996e2 increase jenkins timeout
old-commit-hash: 3f57b7ee7688efd38b2ba3581495b2c250409020
2020-07-03 20:34:31 -07:00
Adeeb Shihadeh de457fddc2 On-device CI framework (#1784)
* let's see if this works

* fix build_release actions job

* does jenkins like this config

* separate jenkinsfile for release build

* fix devel build

* devel build should work

* always pass that for now

* run modeld replay

* release2 build will be a separate PR

* pass env to phone shell

* force checkout

* run on real jenkins eons

* add timeout

* rsync

* more timeout

* trailing slash

* fix branch detection

* debug

* not sure why paramiko doesn't pass it through

* newline

* CI_PUSH

* still not passing it

* test branch

* should be good now
old-commit-hash: 32f03ec8a52c7c5fa56d5cce19fbbd7ecf24b7dd
2020-07-03 19:12:05 -07:00
Adeeb Shihadeh f74865bedf Refactor CPU usage test (#1802)
* pull CPU usage test out of manager

* remove that

* add to release files

* cleanup

* executable

* this should work

* check if car started procs are running

* debug

* add min cpu usage

* remove debug prints

* adjust min cpu threshold

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6db7fa8c033841c82d1139119aad8a20645449f4
2020-07-03 15:40:13 -07:00
martinl dfee3692f6 Support for 2019 Subaru Ascent (#1801)
* Add support for Subaru Ascent 2019

* remove duplicate safetyModel

* Add Ascent 2019 to README.md
old-commit-hash: b1abf17752f7631014d855466c46f2aef71bc604
2020-07-01 16:54:40 -07:00
Adeeb Shihadeh 414a3400bd remove duplicate key
old-commit-hash: 3c48b5a3ed2e7c1f315caf4d6b868155e41c9bea
2020-06-29 15:05:47 -07:00
Adeeb Shihadeh a94bb2bcff update replay segment
old-commit-hash: 9fb4eeea96be03450678624b6f0670ba0f7342ca
2020-06-26 20:28:59 -07:00