Commit Graph

7421 Commits

Author SHA1 Message Date
Dean Lee
f80acad519 modeld: read frame_id if sm.update(0)>0 (#1947)
* read frameid if sm.update(0)>0

* move postion

same line
2020-08-01 11:01:43 -07:00
Willem Melching
80acb32825 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
2020-07-31 23:14:31 +02:00
Adeeb Shihadeh
1d7f4bc3b1 fix locationd profiling 2020-07-30 18:24:07 -07:00
HaraldSchafer
8e2d344135 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>
2020-07-30 15:33:22 -07:00
Adeeb Shihadeh
4658df7a66 add locationd, paramsd, dmonitoringd to CPU usage script 2020-07-30 15:28:58 -07:00
Adeeb Shihadeh
714f8c3f0b Remove get_one_can from messaging (#1946)
* move get_one_can into openpilot

* bump cereal
2020-07-28 23:52:18 -07:00
Adeeb Shihadeh
63e4aeac9f fail new car model unit tests if missing a test route 2020-07-28 23:37:53 -07:00
xps-genesis
9853b5b1df new palisade fingerprint (#1945)
* new palisade fingerprint

* update 1

* FP2 added

* spacing adjust

* missed a syntax
2020-07-28 20:22:43 -07:00
Adeeb Shihadeh
acb25751b7 Revert "can't directly access sockets anymore", was supposed to be on branch
This reverts commit 6acda96a16.
2020-07-28 18:41:39 -07:00
Adeeb Shihadeh
6acda96a16 can't directly access sockets anymore 2020-07-28 18:37:16 -07:00
Shane Smiskol
2e59349b2e Add a minimal debugging tool to show the UI while device not in car (#1937)
* add a minimal uiview file with alias from selfdrive/ui

* make ui_debug executable

* minimize uiview.py; remove os and functions. the processes exit normally when ctrl+c'ing out of the loop

* violating E401 here, save 1 more line

* kill on exit

* forgot signal

* new record! 15 lines

* add comments and declare some common variables. don't need to redefine the messages every loop
2020-07-28 11:15:16 -07:00
Dean Lee
2953ae2810 UI cleanup (#1941)
* remove unused variables

* remove unused variables
2020-07-28 11:13:37 -07:00
ZwX1616
2cfa0edb4c 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>
2020-07-27 20:22:06 -07:00
Shane Smiskol
247ec73370 Update TOTAL_SCONS_NODES (#1938) 2020-07-27 18:23:38 -07:00
Adeeb Shihadeh
5453d8dd30 Add Lexus RX300 2019 FW (#1838)
* Add Lexus RX300 2019 fw

* build tmp branch

* Revert "build tmp branch"

This reverts commit e487ca13458ac0c8c75d2fd3600567b3c22a5ab3.

Co-authored-by: VirtuallyChris <chrismccammon123@gmail.com>
2020-07-27 15:59:59 -07:00
Adeeb Shihadeh
967c1f1565 remove dead lines from boardd cython setup 2020-07-27 13:09:09 -07:00
Erich Moraga
b677e89159 Local variable ARCH isn't used anymore (#1930) 2020-07-27 13:06:13 -07:00
Willem Melching
405d94ec6d qcom2 build fixes 2020-07-27 16:13:25 +00:00
Dean Lee
5cbdaa19bb sidebar: remove unnecessary checks on uilayout_sidebarcollapsed (#1928)
* cleanup

* keep local variables

* done
2020-07-26 21:00:24 -07:00
Dean Lee
cf1ae581ed boardd: use enum instead of magic number (#1927) 2020-07-26 14:30:56 -07:00
Adeeb Shihadeh
360cd7d8a8 kia stinger: use hyundaiLegacy safety mode and add test route 2020-07-26 14:09:49 -07:00
Adeeb Shihadeh
892e1162c0 Car cleanup (#1924)
* cleanup car code

* more pruning

* little more

* less pylint disables

* radar stuff

* fix

* udpate refs

* fix honda bosch

* fix test
2020-07-25 15:07:27 -07:00
Adeeb Shihadeh
99106fd9c4 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
2020-07-25 02:27:56 -07:00
Adeeb Shihadeh
90fc1c6028 Improve on-device CI reliability (#1922) 2020-07-25 02:12:19 -07:00
Willem Melching
e0e7c7486d remove old params learner (#1918) 2020-07-24 18:43:17 +02:00
Comma Device
9a78378b81 add timeout on procLog socket for CPU usage test 2020-07-23 17:51:18 -07:00
Adeeb Shihadeh
02d5b19d4d update refs 2020-07-23 15:55:53 -07:00
xps-genesis
3a1b08eb9d Use hyundai legacy safety for Kia Sorento (#1912)
confirmed kia sorento to use legacy safety checks
2020-07-23 15:45:19 -07:00
Adeeb Shihadeh
4bc90c578a add test route for HYUNDAI.KIA_SORENTO 2020-07-23 15:44:14 -07:00
Adeeb Shihadeh
61548f5a48 Only draw lead car indicators when controlling longitudinal (#1914) 2020-07-23 13:28:58 -07:00
Adeeb Shihadeh
f753ca14ad add HYUNDAI_GENESIS test route 2020-07-23 13:24:06 -07:00
martinl
a086f52881 Subaru Global generated dbc and new signals (#1908)
* Change carstate signals to use feature-subaru-long dbc

* Add Conventional_Cruise signal to carstate

* Fix Conventional_Cruise signal source

* Use Cruise_Cancel signal in subarucan

* switch to subaru-global-2020 opendbc branch

* Update release file

* bump opendbc

* switch panda to subaru-global-carstate branch

* bump panda

* bump opendbc

* revert submodules for upstream PR

* switch panda and opendbc to upstream

* bump opendbc
2020-07-23 12:28:23 -07:00
Willem Melching
74f95b8b26 skip 1st segment in debug replay 2020-07-23 17:56:36 +02:00
Willem Melching
7a1e229a9a fix spinner 2020-07-23 17:51:45 +02:00
Erich Moraga
8f6ea69396 Add fwdCamera f/w for 2020 Corolla Hybrid ZR (AUS) (#1911)
@iamty#6048 DongleID c4bfe655c9130ba4
2020-07-23 17:32:16 +02:00
Dean Lee
1da11c26b6 boardd: Add new functions usb_read, usb_write (#1856)
* add func usb_write&usb_read

* rename cnt to err

* pass in device handle

* use defines for flag values

* consistent spaces

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-07-23 17:27:08 +02:00
Dean Lee
c788aa99dd fix buffer overflow (#1871) 2020-07-23 15:52:59 +02:00
Dean Lee
2232efbcd4 boardd: release claimed interface before closing usb (#1855)
* release claimed interface

* pass device handle by reference

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-07-23 15:37:28 +02:00
Willem Melching
0ac2f6c470 make sure boardd loopback test can run standalone 2020-07-23 15:31:32 +02:00
Adeeb Shihadeh
3b428fdebb fix modeld replay test 2020-07-22 20:17:27 -07:00
Willem Melching
5139b827af add tolerance to process replay compare (#1904) 2020-07-22 11:50:58 +02:00
Greg Hogan
825821f010 Honda CRV BSM alert from B-CAN (#1867) 2020-07-21 17:41:45 +02:00
Chris Souers
85000dd5cc Add 2020 Insight FW (#1879) 2020-07-21 12:06:21 +02:00
Andre Volmensky
da5dc7693e Nissan: Tweaking steeringPressed/LKAS_MAX_TORQUE (#1865)
* Tweaking steeringPressed/LKAS_MAX_TORQUE

* Update ref commit
2020-07-20 16:30:40 -07:00
Adeeb Shihadeh
2d4f0c49fa Revert "Update values.py (#1824)"
This reverts commit 2052bd69f1.
2020-07-20 15:41:57 -07:00
s70160
2052bd69f1 Update values.py (#1824)
CAR.IONIQ_EV_LTD: [{
68: 8, 127: 8, 304: 8, 320: 8, 339: 8, 352: 8, 356: 4, 544: 8, 576:8, 593: 8, 688: 5, 832: 8, 881: 8, 882: 8, 897: 8, 902: 8, 903: 8, 916: 8, 1040: 8, 1056: 8, 1057: 8, 1078: 4, 1136: 6, 1173: 8, 1225: 8, 1265: 4, 1280: 1, 1287: 4, 1290: 8, 1291: 8, 1292: 8, 1294: 8, 1322: 8, 1342: 6, 1345: 8, 1348: 8, 1355: 8, 1363: 8, 1369: 8, 1407: 8, 1427: 6, 1429: 8, 1430: 8, 1448: 8, 1456: 4, 1470: 8, 1476: 8, 1535: 8
}],
2020-07-20 14:10:21 -07:00
Adeeb Shihadeh
ede5b632b5 fix tested branch detection 2020-07-20 13:59:10 -07:00
Adeeb Shihadeh
2189fe8741 bump to 0.7.8 2020-07-20 11:47:26 -07:00
Shane Smiskol
ebadb39e42 Fix hard deceleration after user accelerates above set cruise speed (#1880)
* Fix hard deceleration after user accelerates above set cruise speed

* 2nd required change
2020-07-20 17:04:05 +02:00
cfranhonda
1613abb0b1 Update civic bosch longitudinal tuning (#1875)
These are the correct values when i was testing visionradar. Things got messed when Civics were coded together and got split up again.
2020-07-20 17:03:20 +02:00