Commit Graph

1245 Commits

Author SHA1 Message Date
Dean Lee
a81c4ebd79 camerad: protect concurrent access to shared variables and avoid race conditions (#1966)
* Protect concurrent access for shared resources

* fix
old-commit-hash: f3fb406eee
2020-08-11 11:40:11 -07:00
Erich Moraga
c8676c69e3 Added additional IS 300 engine f/w (#2015)
@Asochgelt#1815 DongleID|route 3da61f28d4ece0e8|2020-08-11--09-25-48

Also expanded the firmware layout to make additional f/w entries easier.
old-commit-hash: 8c9378af79
2020-08-11 11:29:19 -07:00
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: c9adc4900b
2020-08-10 12:31:40 -07:00
xx979xx
705dfc1c5b fix for PC: detach panda kernel driver if active (#1950)
old-commit-hash: 4f0c75291b
2020-08-09 01:08:09 -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: a16a948f9e
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: ecf0a8c8d4
2020-08-08 20:59:32 -07:00
Dean Lee
066398a49a camerad: close ops_sock in camera_close (#1998)
old-commit-hash: 55ece6991e
2020-08-08 15:55:09 -07:00
Dean Lee
735f84089c fix bug that visionstream_destroy may be called twice (#1999)
old-commit-hash: cccb63229d
2020-08-08 15:50:36 -07:00
Adeeb Shihadeh
755c21f05c update_ci_routes.py: upload route by arg
old-commit-hash: cea8b9e67a
2020-08-08 14:30:31 -07:00
Adeeb Shihadeh
944759717e fix missing negative limit in pid controller (#2001)
old-commit-hash: ee99b59bad
2020-08-08 11:49:13 -07:00
Adeeb Shihadeh
c4ce441026 Remove non-SCC Hyundai Kona port (#1997)
old-commit-hash: 5e82578a1b
2020-08-08 11:48:16 -07:00
Adeeb Shihadeh
4cb22dcc80 only check offroad in dmonitoringd on init
old-commit-hash: 31f57cb3a3
2020-08-07 10:48:03 -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: e37b8e5d56
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: fe18a014c7
2020-08-06 21:49:05 -07:00
VirtuallyChris
1ef178279f Add Camry 2020 camera fw
old-commit-hash: 0fd763f902
2020-08-06 16:39:06 -07:00
Dean Lee
0d76ecc156 release opencl objects (#1978)
old-commit-hash: fb41b984b0
2020-08-06 15:44:26 -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: d097abeb21
2020-08-06 14:47:17 -07:00
HaraldSchafer
e85d1f0044 persist falling until message sent (#1982)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 85a7ceaf07
2020-08-06 14:46:19 -07: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
a301462f9b remove dead lines from calibrationd
old-commit-hash: df78c9d4df
2020-08-06 13:57:01 -07:00
Adeeb Shihadeh
792b74f543 Improve update reliability and responsiveness (#1986)
* handle orphaned git lock

* trigger update after going offroad

* git ping
old-commit-hash: a115366ddd
2020-08-06 12:49:11 -07:00
Harald Schafer
3705a2209f wrong units
old-commit-hash: 687afa9687
2020-08-05 13:45:58 -07:00
Dean Lee
f49c319d14 camerad: cache rgb_roi_buf&conv_result (#1979)
lgtm
old-commit-hash: c1e7b761a9
2020-08-05 13:39:03 -07:00
Adeeb Shihadeh
b5fa861871 Cleanup updated (#1981)
* remove dead code from updated

* no short

* simpler

* simplify that

* move that into the class

* little more
old-commit-hash: f61dcb6e12
2020-08-05 13:29:03 -07:00
Harald Schafer
daf9176711 Revert "persist falling test"
This reverts commit 273f745ad5d1ce7e92ce24e8fa3b08895977dd5c.

old-commit-hash: 7032a40717
2020-08-05 10:46:26 -07:00
Harald Schafer
d252db9da9 persist falling test
old-commit-hash: 8cad9375d3
2020-08-05 10:44:40 -07:00
Dean Lee
1bc3801c9b Make sure memory is released by using unique_ptr (#1958)
old-commit-hash: ef435ef2ac
2020-08-05 12:27:56 +02:00
Adeeb Shihadeh
0b64a13bc9 improve updated responsiveness (#1973)
old-commit-hash: 88c67e7e9f
2020-08-04 13:48:19 -07:00
Cruise Brantley
7996e51de3 Add Kia Stinger transmission FW version (#1975)
* new Stinger transmission fingerprint

* Formatting
old-commit-hash: 85fc85b3c8
2020-08-04 13:05:13 -07:00
Dean Lee
d4f99896e3 remove selfdrive/common/visionstream.c (#1931)
old-commit-hash: 681ff41261
2020-08-03 17:04:47 -07:00
HaraldSchafer
122118ccd4 add fall filter and less FP on posenet (#1971)
* add fall filter and less FP on posenet

* add alert

* list

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 490ee52687
2020-08-03 15:51:56 -07:00
Adeeb Shihadeh
f8e08fad90 Cleanup locationd msg building (#1972)
* cleanup locationd msg building

* remove that
old-commit-hash: 1208ac424d
2020-08-03 14:58:15 -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
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: 6e1bcdcb34
2020-08-02 15:45:41 -07:00
Adeeb Shihadeh
80b450e2a6 we have routes for these now
old-commit-hash: 433c9241f3
2020-08-02 15:25:09 -07:00
Adeeb Shihadeh
904217b646 Update Hyundai DBC (#1968)
* update for new DBC update

* update to new DBC

* Ioniq uses SCC12. Ioniq EV lim uses FCA11

* update elect gear to EV_PC5 signal

* remove 'alt' from label

* revert

* update name to ev_pc5_gears

* update name to use_ev_pc5_gears

* Update values.py

* Update carstate.py

* bump opendbc

Co-authored-by: xps-genesis <65239463+xps-genesis@users.noreply.github.com>
old-commit-hash: 059a27d126
2020-08-02 15:19:27 -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
Dean Lee
3e083c1074 remove duplicate call to getDMonitoringState (#1964)
old-commit-hash: 56e63bafa8
2020-08-02 10:55:24 -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
069bd4061e Driver view refactor (#1869)
* quick driver view cleanup

* send at correct freq

* let manager handle that

* don't block starting on driver view

* fix UI hacks

* ui cleanup

* move driver view functionality into dmonitoringd

* dmonitoring thresholds shouldnt be in UI

* remove driver view file from release files

* timeout on frontview

* bump cereal
old-commit-hash: a7ee2a53a8
2020-08-01 17:26:35 -07:00
Dean Lee
046dd61d3b modeld: read frame_id if sm.update(0)>0 (#1947)
* read frameid if sm.update(0)>0

* move postion

same line
old-commit-hash: f80acad519
2020-08-01 11:01:43 -07:00
Willem Melching
562394e2ae Panda abstraction layer in boardd (#1919)
* start on panda abstraction layer

* handle bulk transfer in library

* Safety model abstraction

* Abstract hw type into library

* Handle disconnect

* RTC stuff

* Fan control

* Health

* Panda fw version

* Read serial

* Power saving

* Power mode

* Cleanup pigeon thread init

* Rename safety setter variable name

* Remove comment

* Unused global cleanup

* malloc -> new

* whitespace

* Use std::thread

* Use std::thread for safety setter

* Cleanup igntion_last global

* Heartbeat

* logd

* More global cleanup

* Put back sleep

* ir pwr

* Always broadcast health

* init struct with zeroes

* Fix eon build

* fix race condition

* fix Adeebs comments

* abstract can send and receive
old-commit-hash: 80acb32825
2020-07-31 23:14:31 +02:00
Adeeb Shihadeh
11d808c89d fix locationd profiling
old-commit-hash: 1d7f4bc3b1
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: 8e2d344135
2020-07-30 15:33:22 -07:00
Adeeb Shihadeh
51c3619f99 add locationd, paramsd, dmonitoringd to CPU usage script
old-commit-hash: 4658df7a66
2020-07-30 15:28:58 -07:00
Adeeb Shihadeh
224b7fd34b Remove get_one_can from messaging (#1946)
* move get_one_can into openpilot

* bump cereal
old-commit-hash: 714f8c3f0b
2020-07-28 23:52:18 -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
xps-genesis
c50e01474e new palisade fingerprint (#1945)
* new palisade fingerprint

* update 1

* FP2 added

* spacing adjust

* missed a syntax
old-commit-hash: 9853b5b1df
2020-07-28 20:22:43 -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: acb25751b7
2020-07-28 18:41:39 -07:00