Commit Graph

10931 Commits

Author SHA1 Message Date
Cameron Clough
c7820cf1cc ui: hasPrime/primeChanged helper (#29590)
old-commit-hash: 05e91c074d0fbabfd3475d4f34b975819159519b
2023-08-24 12:47:22 +01:00
Cameron Clough
9f8fb6ab30 bump cereal
old-commit-hash: 102047013f60e1a3c2e919ae237c1bfbda07ea06
2023-08-24 12:42:08 +01:00
Dean Lee
c6db4c515c ui: use enum PrimeType for prime_type (#29491)
old-commit-hash: 99279b8eef43586aa09d001668355fa41e01b98f
2023-08-24 12:26:45 +01:00
Shane Smiskol
820ca41f1a car interfaces test: don't sleep (#29589)
don't sleep in test_car_interfaces
old-commit-hash: e38ce6087fe56068de40dbbc57944ddf68b8642c
2023-08-24 04:24:22 -07:00
Shane Smiskol
8326f9f90c manager: test process exclusion (#29586)
* add test

* add comment

* Update selfdrive/manager/test/test_manager.py

* more accurate
old-commit-hash: 84b897cf44104d964834979d6fc34822baa999bf
2023-08-24 00:34:36 -07:00
Dean Lee
0702e273cb replay: fix visionbuf alignment on device (#26913)
* align visionbuf

* update test case

* cleanup

* fix cpplint warning
old-commit-hash: 3c94d953ab9fcaf8ee2371af3f269ae46d3563c6
2023-08-24 00:03:16 -07:00
Justin Newberry
de7257c22c CI: Normalize file permissions (#29584)
* normalize file permissions

* comment

* add comment

* remove that

* shell

* should be on the top
old-commit-hash: da7504e1e72ac09063901361377a64ec074efe8f
2023-08-23 23:50:51 -07:00
Dean Lee
f7efad93e4 ui/map_instructions: restore padding (#29548)
* restore padding

* fixes

* fix left and right margins

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 4ea78330605cc3e46005e3d0f8915ef8a60c952a
2023-08-23 23:32:01 -07:00
Dean Lee
56b582a059 cpplint: add filter whitespace/forcolon (#29582)
whitespace/forcolon
old-commit-hash: ac939029835542a02b866e8a0d174f09773e4e6e
2023-08-23 22:46:02 -07:00
Shane Smiskol
acec4fc22f Subaru: Forester Hybrid 2020 dashcam (#24770)
* Add support for Forester Hybrid 2020

Co-authored-by: martinl <martin@mlp.ee>

* it's a param now

* make it work

* fix

* merge and cleanup

* remove duplicate

* should be forester

* bump submodules

* should be abs

* add missing params

* still need a test route

* still need a test route

* consitent

* here too

* todo

* more

* Update selfdrive/car/tests/routes.py

* clean up

---------

Co-authored-by: martinl <martin@mlp.ee>
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 3719be8b76f81068da3aadd5bd0f76e8a4d00396
2023-08-23 21:30:12 -07:00
Irene
1a787910a8 Toyota: add TODO comment for TSS-P BSM (#28396)
* Toyota: enable BSM on C-Hr

* Update selfdrive/car/toyota/carstate.py

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* remove duplicate block

* Remove useless addition

* make this a comment for now

* remove extra bit

* clean up

* clean up

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: cb342461f03e6ff0e6eccbe5de55796b44e659f1
2023-08-23 20:52:01 -07:00
Dean Lee
7e6be3378c swaglog: remove unnecessary string copy (#29164)
old-commit-hash: 8b7004e68dfad516adbdecc9925bd7fc954cc8d4
2023-08-23 20:10:23 -07:00
Dean Lee
9bb3316925 encoder/VideoWriter: remove unnecessary call to avcodec_close (#29039)
old-commit-hash: 95e9232963ad2deed377a3d840f25e40f921b8ca
2023-08-23 20:08:19 -07:00
Harald Schäfer
c6d12893f6 Laikad: ignore more garbage measurements (#29569)
* Laikad: ignore more garbage measurememnts

* bump laika
old-commit-hash: f4f8047e979c3366ab4ecd7527cc6daf01f126db
2023-08-23 19:48:55 -07:00
Adeeb Shihadeh
56facfcc5a Subaru: Crosstrek Hybrid dashcam mode (#25378)
* Subaru: Crosstrek Hybrid support

* hybrid cars in dashcam only

* revert that

* just dashcam

* tah should be abs

* remove unused import

* use the old dbc for now

* hybrid car exceptions in carstate

* need dashstatus until we get a proper cruiseactivated bit

* missing CP

* merge conflicts

* lets be consistent about extend

* cleanup

* fix and comments

* preglobal fix

* and the rest

* and this

* added hybrid to release

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 973d90be779efc0e4a83eeab213c0cc9b4d711ce
2023-08-23 18:50:55 -07:00
Dean Lee
8c6cb78f38 encoderd: remove unnecessary calls to encoder_close() on exit. (#28970)
old-commit-hash: ddd849a882ded042c1f5fb71cb4e200fe2cb8327
2023-08-23 17:56:22 -07:00
Gellis12
e311487192 Add initial fingerprint 2.0 for Nissan Leaf 2018-23 (#29505)
Initial fingerprint 2.0 for Nissan Leaf 2018-23
old-commit-hash: a0f3b830622a2ebee2a718554c542cb208b10acf
2023-08-23 17:46:34 -07:00
Justin Newberry
7a532e02f3 CI: switch to --cache-to type=inline for buildkit cache (#29575)
this is cleaner
old-commit-hash: 2fdde9b77d5d830277500d6841f32a356544718a
2023-08-23 17:41:33 -07:00
Erich Moraga
01a8a30fe8 Toyota: add engine & fwdRadar ECU versions for 2023 Toyota Camry Hybrid (#29508)
`@Varvaras` 2023 Toyota Camry Hybrid  Dongle ID/route 3a47f2dd831feb30|2023-08-20--19-41-21
old-commit-hash: ba1ad422d74622a6e565a1b5bed97cf379173e21
2023-08-23 17:37:38 -07:00
pencilpusher
cc4f6c5fbe ui/map: keep the car icon aligned to its bearing (#29482)
* rotate icon with current bearing

When user is rotating the map, the car icon should stay fixed on the cars bearing, not the map.

* spacing

* comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 472151b6a004d387532415039196c2165f7d32df
2023-08-23 17:33:58 -07:00
Dean Lee
5ac4f52c6f ui/PrimeUserWidget: cleanup layout (#29492)
cleanup layout

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5fcb7e9038ec9054dcdb8d9b832bea2f597d6aa9
2023-08-23 16:34:18 -07:00
Dean Lee
7b4400f2c6 scons: remove missing MPC headers (#29485)
* remove invalid files

* Update selfdrive/controls/lib/lateral_mpc_lib/SConscript

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 55cca6ed2669829a77ce660625b2fc8d73bf02bf
2023-08-23 15:43:27 -07:00
Justin Newberry
e54655626d CI: Docs rebuild base image (#29566)
* docs rebuild base image

* fix order
old-commit-hash: 2e4f8e6608bafc89509f6c104688b7dd8273eeac
2023-08-23 15:33:23 -07:00
Jason Wen
7b99834975 Hyundai longitudinal (CAN): display AEB indicator on non-FCA cars (#29484)
* Hyundai longitudinal (CAN): display AEB indicator on dashboard on non-FCA cars

* clear up comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 3b01d99d3001034890f17aaf3834c92e7e689661
2023-08-23 15:22:52 -07:00
Dean Lee
5f4b422305 cpplint: add filter whitespace/semicolon (#29568)
old-commit-hash: f203648de0a9d78121d3a775ae454a43e1211e62
2023-08-23 15:00:30 -07:00
Dean Lee
72e6a332d1 sound.h: add #pragma once (#29567)
old-commit-hash: 2c20a2b5d7956d5ae5e27508ffa19b6694bbe224
2023-08-23 14:47:34 -07:00
Shane Smiskol
5b7ab66c53 thermald: type annotate main thread (#29414)
* type

* stash

* Revert "stash"

This reverts commit f5e5e0d08c967d1a5d9c239e6335f8a47890b1a1.

* bug in mypy
old-commit-hash: af8af3209dc0756ccc25e41612b855d54b8d7af4
2023-08-23 14:42:27 -07:00
Dean Lee
db211ce617 cpplint: add filter whitespace/parens (#29565)
old-commit-hash: 5480d32bb5d98d57100fd709b9ffe7bfcc6e020a
2023-08-23 14:25:05 -07:00
Adeeb Shihadeh
8960a0912b sensord: fix LSM magnetometer thermal variation (#29265)
* do set reset for every measurement cycle

* use one sensorvec

* convert from continuous to manual mode

* separate the set/reset and TM_M

* make magnetometer readings manual, set appropriate sleep

* add more sleep and check validity of values

* add magnetometer to a separate thread

* refactor

* bugfix

* each sensor in a new thread, handle generically

* bugfix

* rm global

* update cpu

* update test

* update test

* revert cereal change

* split out temp sensors

* little more

* fix

* fix

* bump cereal

* linter fixes

---------

Co-authored-by: nuwandavek <vivekaithal44@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 239d6a24bed850a6fbd3e0794da19130cdb773f7
2023-08-23 14:21:10 -07:00
Adeeb Shihadeh
44f1d480f9 sensord: run as many sensors as possible (#29564)
old-commit-hash: d3fb75a972338e37d5537d900c8d2f55439db961
2023-08-23 14:07:00 -07:00
Adeeb Shihadeh
0ae2523a16 sensord: lower temperature sensor freq to 2Hz (#29563)
old-commit-hash: 42769345d505cc30978aaf9ed735cb8d644b13aa
2023-08-23 14:00:26 -07:00
Adeeb Shihadeh
6b2ffe9490 bump cereal (#29561)
old-commit-hash: e726505918bfbaa4ee75714bd6ea391d7fff7fb8
2023-08-23 13:42:37 -07:00
Dean Lee
97e9d55588 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d99521e7500902070d0aacce69528bcfd8b9964
2023-08-23 13:25:17 -07:00
Harald Schäfer
ca666855d5 Laikad: reset est pos when in bad state (#29559)
* reset est pos when cant delay correct

* was just for debug
old-commit-hash: aa585b17578a38b294ee748b172e6ad28f8266ca
2023-08-23 13:23:17 -07:00
Adeeb Shihadeh
5c213d7a38 sensord: setup per-sensor threads (#29558)
* sensord: setup per-sensor threads

* revert cereal

* more cleanup

* bump cereal

* update test

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6a66b7555679c5cd3511e03ba6e1cb528706f84e
2023-08-23 12:58:09 -07:00
Willem Melching
6b98b83ad4 cabana: socketcan support (#27952)
* empty socketcan class

* works on linux with vcan

* add open stream widget

* fix MacOS build

* update readme

* unused

* no socketcan on C3

* fix in cabana sconstruct

* serial -> device
old-commit-hash: 2b0e4d46bbbb0ccbf028c975c3345d05765a7213
2023-08-23 10:50:11 -07:00
Kacper Rączy
3681c1d1b2 devcontainer: handle hosts without X11 (#29537)
* Setup xauthority link on host in initializeCommand

* Create a dummy xauthority if it does no exist on host machine

* Remove xauthority line from ci test
old-commit-hash: 659795b1db85636a2f97eba7616159047bf0c6e9
2023-08-23 10:26:38 -07:00
Dean Lee
004a097c95 cpplint: add readability/braces filter (#29554)
old-commit-hash: 363740a497620249066522c87ddb03e1362749d4
2023-08-23 10:13:46 -07:00
Shane Smiskol
7ecfda8b79 Revert "FW query: query one sub-address in parallel" (#29550)
Revert "FW query: query one sub-address in parallel (#28675)"

This reverts commit 3d4c32284699dfd4f78bb2f5bb645344c98f1b46.
old-commit-hash: 365bdd342200b5348370de418a652301da2e3949
2023-08-23 01:41:28 -07:00
Shane Smiskol
c5099d5000 FW query: query one sub-address in parallel (#28675)
* put one subaddr in parallel_addrs

* p

* remove print

* update test refs

* test

* revert test changes

* do same in present ECU query, lower threshold to catch (~0.82 to ~0.72 right within bounds)

* type

* clean up

* update test ref
old-commit-hash: 861ceb2feeb8e9f303b96c0e7a9ef19c5423938d
2023-08-23 01:31:04 -07:00
Harald Schäfer
200a8eb8b5 Laikad upgrades: prep for laikad lld (#29545)
* Laikad upgrades: prep for laikad lld

* Update ref commit
old-commit-hash: 8a7281d2859f2fa8d49cb3b679c2eaf5ec8f1729
2023-08-23 00:13:10 -07:00
Shane Smiskol
c9ca332b3f Update FW query total time
old-commit-hash: 1ea310b202ecedfad67831cca189970944977145
2023-08-22 23:58:29 -07:00
Shane Smiskol
4699eed8f3 FW Query: test noOBD queries on aux panda (#29547)
* huh, this test just works!

* fix

* Update selfdrive/car/tests/test_fw_fingerprint.py
old-commit-hash: 7de9842245dfb506ec340290469d7412989e2233
2023-08-22 23:43:52 -07:00
Shane Smiskol
3527b47f6d Toyota: prepare to disable radar (#29542)
* try to disable radar

* fix bug and bump panda

* prep

* always attempt longitudinal for testers

* fix rav4

* send ACC_HUD

* bump panda

* revert

* check for failure to disable

* fix arg

* bump to master

* revert to master

* comments only

* correct check

* carcontroller

* something like this

* or this

* use flag

* send PCS HUD

* clean up

* carstate checks

* fix from test models

* consistent
old-commit-hash: 0aa6e2ce41113a8f129ab88762037254f2951f91
2023-08-22 21:17:30 -07:00
Shane Smiskol
5949a8d3c6 Toyota: remove redundant car set union (#29546)
remove confusing union
old-commit-hash: 16a8c9fbf13bf6a61f5704d5a2885b09ce4a8f80
2023-08-22 21:09:33 -07:00
Adeeb Shihadeh
e9a497dc5b build.py: retry with less threads (#29543)
* build.py: retry with less threads

* cleanup

* fix no output

* cleanup
old-commit-hash: bb1b641812353e9723cad0aa6f844466c67d9c6b
2023-08-22 20:58:43 -07:00
Shane Smiskol
ada18f0da7 Revert "Toyota: prepare to disable radar (#29541)"
This reverts commit 2d56016f4c25f7672ff770958ea65c6bc023e387.

old-commit-hash: cb368163158fe8133b317273f99f011ce1fa2288
2023-08-22 19:50:24 -07:00
Shane Smiskol
1acbc2c55a Toyota: prepare to disable radar (#29541)
* try to disable radar

* fix bug and bump panda

* prep

* always attempt longitudinal for testers

* fix rav4

* send ACC_HUD

* bump panda

* revert

* check for failure to disable

* fix arg

* bump to master

* revert to master

* comments only
old-commit-hash: 61653bf343bc189d9231234a5b95777998096fa6
2023-08-22 17:16:38 -07:00
Justin Newberry
1a29920369 CI: enable missing tests (#29538)
old-commit-hash: 979c96167d5ba2f07a7e0dee7c059c3a2ee4757b
2023-08-22 16:48:02 -07:00
Vivek Aithal
ab4788cb3b CHEVROLET SILVERADO 1500 2020: Make Silverado lateral tune non-linear (#29540)
add nonlinear values to silverado
old-commit-hash: 2fe3231b49ea8cd82dd270682a4641ffd016d73a
2023-08-22 16:11:21 -07:00