Commit Graph

11597 Commits

Author SHA1 Message Date
Adeeb Shihadeh d46981cac5 tici: add wait_for_power helper (#29507)
* tici: add wait_for_power helper

* deque

* cleanup

---------

Co-authored-by: Bruce Wayne <batman@z840-provisioning2.internal>
old-commit-hash: 985af1ce3cc9849c0c677d2f1a062daef1b8d0dc
2023-08-21 13:46:00 -07:00
Justin Newberry 8abf2d1637 Subaru: remove unused backoff rate calculation (#29368)
* cancel rate

* Update selfdrive/car/subaru/carcontroller.py

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

* leave it as it was for now

* cleanup

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: fc9a623d69919897c3e070ed11309c92651611a8
2023-08-21 13:31:57 -07:00
Kacper Rączy 1d47429f8e Setup cleanup vol. 2 (#29456)
* code from setup cleanup #29419

update ci

update ci

export variables for mac os

check env

what is in the profile script?

install pyenv the same everywhere

temporarily disable brew cache

temporarily disable brew cache

try fixing pyenv virtualenv-init

try this

inject shims path earlier

try alternate install method

switch back to brew install

try         eval "$(pyenv init --path)"

add eval "\$(pyenv init --path)"

* Add local .env file to the cache list

* Change .env paths

* debug line

* order?

* remove .env

* Add .venv to caches

---------

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
old-commit-hash: 0f7be5b1e6efa04c59ce2a45afacd650b2e4d417
2023-08-21 13:30:48 -07:00
Caleb Stultz 7681ae50af Remove Kia Sorento from LEGACY_SAFETY_MODE_CAR (#29502)
* Remove Kia Sorento from LEGACY_SAFETY_MODE_CAR

* Update values.py

* Added Kia Sorento to UNSUPPORTED_LONGITUDINAL_CAR
old-commit-hash: 551b0cc8f20794362ce66ecee0afb7cbcf4f97b1
2023-08-21 10:43:31 -07:00
Dean Lee 31ccaa11ab boardd: keepTime after failing to get ignition_opt (#29506)
* keep time after failing to get ignition_opt

* Update selfdrive/boardd/boardd.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 71d8f41ed8fd8644b44420b4f695c5f4ac820e30
2023-08-21 09:41:17 -07:00
Adeeb Shihadeh 29977caa45 sensord: rm light sensor (#29503)
old-commit-hash: f5071411cb460cc64474f533143f37ba3eb54ce6
2023-08-20 22:38:39 -07:00
Dean Lee 97631ec362 common: C++ RateKeeper (#29374)
* c++ RateKeeper

* add to files_common

* use util::random_int

* improve monotor_time

* remove ~ratekeeper
old-commit-hash: 3eef63af9b4f4a25bc4c3a0d6ad450bba9f62205
2023-08-20 21:27:02 -07:00
Adeeb Shihadeh bd27be2b78 move mypy config into pyproject.toml (#29501)
* move mypy config into pyproject.toml

* rm reference
old-commit-hash: ff068dd722b31078b9356d3f55e4898cf00a89cb
2023-08-20 21:08:04 -07:00
Adeeb Shihadeh 16ec56398c add openpilot prefix to imports (#29498)
* add openpilot prefix to imports

* more

* more

* fix docs

* fix linter

* bump submodules

* fix patched tests

* update dynamic imports

* debug

* Revert "debug"

This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
old-commit-hash: a9626f95b69af19306143fc4def02fb5769405d2
2023-08-20 20:49:55 -07:00
Adeeb Shihadeh 51634f52dc replace custom clock helpers with time module (#29499)
* replace custom clock stuff wtih time module

* fix double

* fix release

* bump cereal

* update type

* fix one more
old-commit-hash: d61f86d3398900ef01423d24cfdf897392a8efbb
2023-08-20 18:50:58 -07:00
Harald Schäfer 3022f06e1e update process replay timeout (#29478)
* Always dict differ

* Update selfdrive_tests.yaml

* bump up more

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: bc4b75822a609e6897058bc83688c84004f29093
2023-08-20 17:24:33 -07:00
Adeeb Shihadeh 1c3ca3e810 update clone instructions (#29490)
* both

* Update README.md

* Update README.md
old-commit-hash: 5690386d8d731c9bebda536a5c71c890f6dfe98c
2023-08-20 15:13:24 -07:00
Lee Jong Mun 64f89e259a kor translation update (#29493)
old-commit-hash: 1f056f3217c431eeda73f00e7d1ec506e103e201
2023-08-20 15:05:25 -07:00
Harald Schäfer 92d1e3fabb Proc replay: field tolerance unused (#29479)
field tolerance unused
old-commit-hash: 1dea20e57485a79ff4e1515d892e589ed4a4c65e
2023-08-20 13:05:18 -07:00
Cameron Clough 8b0902e324 agnos: alt system image
old-commit-hash: 3861fca9409d3b4950367d32fad2a0da5da816fd
2023-08-20 20:18:52 +01:00
Cameron Clough 868643d111 agnos manifest: add alt system image (#29468)
old-commit-hash: 3972c85e9711c8bf5e6231e80ee7d01f99384e83
2023-08-20 11:50:08 +01:00
Greg Hogan f136a35ce1 fast clone instructions (#29455)
* fast clone instructions

* Support default ubuntu 20.04 git

---------

Co-authored-by: Harald Schäfer <harald.the.engineer@gmail.com>
old-commit-hash: 012060ba328da69e7fd62531bd65e8d064b3f6c0
2023-08-19 01:49:16 -07:00
Dean Lee ff74c8c4cb ui/map_instructions: center lanes (#29465)
* center lanes

* test

* similar spacing and no need for stretchj

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 9ea2cd8d0b5b697ffe7ae38a318ef44e5233ea44
2023-08-19 01:23:42 -07:00
pencilpusher fc14939f02 ui/map: interactive counter fix (#29470)
* use interactive_counter instead of separate zoom and pan counters

* use interaction_counter instead of separate zoom and pan counters

* same styling

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: f2d22075ebd3f5e17628d1cf1ea102c7ce0bbb09
2023-08-19 00:07:52 -07:00
Shane Smiskol 5ab3d6403b Nissan: add alt request for engine on Rogue (#29477)
* get engine

* \xda should work

* fix issue

* Update selfdrive/car/nissan/values.py

* bump ref

* other ref
old-commit-hash: ac07c205ed70745da1400b69afb38c5ee81d1241
2023-08-18 23:47:58 -07:00
Jason Wen 41c8ddebf3 Hyundai longitudinal (CAN): don't send FCA11 on non-FCA cars (#28479)
* Hyundai longitudinal (CAN): don't send FCA messages to non-FCA cars

* Update comments

* outside

* change to FCA11 only

* move down

* add todos

* Apply suggestions from code review

* add todo

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 2bd4e71b243e8c07a8698ae91174cf269983a20b
2023-08-18 23:38:36 -07:00
Shane Smiskol 1a2818d775 Revert "radard: tie radard frequency to modelV2 vol. 2 (#29240)" (#29474)
* Revert "static analysis fixes"

This reverts commit 2271d0adf9a02aee1359717c47cb6280893a6b9b.

* Revert "radard: tie radard frequency to modelV2 vol. 2 (#29240)"

This reverts commit 6757e90415766e84ad1b6c921a2edb29ceb3bbbe.

* update refs
old-commit-hash: 1a08c2986e5600dd4e84bfeaed26c74e679085de
2023-08-18 22:56:43 -07:00
Shane Smiskol 559c626fd1 add Kia Niro Hybrid 2019 to legacy safety mode list (#29472)
* add Kia Niro Hybrid 2019 to legacy safety mode list

* list

* test

* update docs

* space
old-commit-hash: 38f15237420e911294ff12f541529d21242e51aa
2023-08-18 20:57:42 -07:00
Shane Smiskol 43e1679da2 CAN fingerprint: timing test (#29461)
* test fingerprint frames (timing)

* guess not needed

* it checks both buses

* use case list

* this is safe since we call current test only in the current loop, never after

* prof

* test this too
old-commit-hash: 6253dca9eb2e936c5828de5cf96e6c988d1349a7
2023-08-18 14:33:13 -07:00
Terry Huang 169da0c3e7 Ford: Kuga 2022 fingerprint (#29449)
Ford: Kuga 2022 fingerprint
old-commit-hash: 0c50dd9d0fb1d6cec9c40a552d91c43b406bafd5
2023-08-18 13:11:50 +01:00
Shane Smiskol 81e7f53ccb CAN fingerprint: test fingerprint response (#29462)
* test finger

* split up
old-commit-hash: 19767da6688f0f9ae1b91f332a78d76af2745811
2023-08-18 00:37:32 -07:00
Dean Lee 3078da290d ui/map: better rounding for distances (#29151)
* round distance

* use same format in ETA

* remove vanish

* restore translate

* use nearbyint

* update translations

* mark finished

* consistent style

* we don't include this anywhere in ui, needed?

* fix missing std

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: efefcfdca581fd75868b993426dfde21c21c1531
2023-08-17 22:58:18 -07:00
Shane Smiskol 709850e304 map eta: use pair (#29460)
use pair
old-commit-hash: d827cd6a83cbcc4f8231706f085df0d2ec5ef69f
2023-08-17 22:42:12 -07:00
Jason Young ac83f87b36 interfaces: add common STD_CARGO_KG to mass (#29416)
* cleanup std_cargo_kg

* fix Sonata mass

* remove snowflake construct

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: f76ffbdbbcef50ba201edc0349f777e4e372b515
2023-08-17 21:06:07 -07:00
Shane Smiskol 183515c04b Rename CivicParams (#29459)
* CivicParams -> ReferenceCarParams

* remove usage in interface

* better name

* revert
old-commit-hash: 8dcd108972b7a434d91dd00686de669236edf148
2023-08-17 21:02:09 -07:00
Shane Smiskol 593322dfa9 ui/map: slight turn lane types (#29446)
* add slight turns

* bump cereal

* revert

* hmm, i like this better

* whops

* fix

* bump
old-commit-hash: 6d2922b8e6f6ef29b6d17ea7a1c3d16b40e2236f
2023-08-17 20:51:52 -07:00
Adeeb Shihadeh 5530871c0e common/gpio: fix warning on re-export (#29457)
old-commit-hash: 2fa09a9ad7cc4d1dc47c45e12189968d42d69998
2023-08-17 16:32:23 -07:00
Shane Smiskol 98b3087fbb test_models: remove body standstill exception (#29453)
* remove body exception

* bump to master
old-commit-hash: 3563292e6538a9aaf98800e28f9a6557994d8968
2023-08-17 16:26:30 -07:00
Eric Brown 1f6a7d4796 Swap belowSteerSpeed and resumeRequired alert priorities (#28795)
* GM: Don't send belowSteerSpeed when resumeRequired

* Set belowSteerSpeed alert to LOW priority, resumeRequired to MID

* Add script to output all events and their priorities by type

* Set CP, CS, sm

* Subscribe to same messages as controlsd

* Create callable alerts

* Remove event print script

* Remove sng check
old-commit-hash: 111b6438c6a27a4fc3992606321c2282a04ed6cb
2023-08-17 16:03:35 -07:00
Greg Hogan 349359d488 venv in code directory (#29452)
put venv in code directory
old-commit-hash: 282fd778aa303542d5752b0edc3e40db8de10696
2023-08-17 15:43:02 -07:00
Kacper Rączy eb87a31bc5 Unpin numpy (#29421)
* Unpin numpy

* Update lock file

* leave acados comment

* Fix warnings

* Fix more paramsd warnings
old-commit-hash: 62a88e504d9ad82f6d070a11a3499bf89c19d08e
2023-08-17 15:36:14 -07:00
Dean Lee 023cd0492f ui/networking: do not skip the connected network (#29396)
* do not skip connected network

* simplify

* revert

* revert

* no implicit

* ifwt

* fix missing ssid

* makes more sense to only update security_type once (first vs. last)

* better comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: b8b1e17a21390d9a80b1b0643c0001129292576c
2023-08-17 14:43:40 -07:00
Justin Newberry 1988b4805e Revert "setup cleanup (#29419)" (#29451)
This reverts commit bc9c60a3f955bb5b96dc41e6072cab47191f8896.
old-commit-hash: 1944945d9dfee6f42a875b119a5cf60daf8ade09
2023-08-17 13:23:06 -07:00
Dean Lee e1f4ce2fb1 replay/logreader: use unique_ptr for mbr_ (#29440)
old-commit-hash: 61a00d267380f8ea75e5d7b6aeb7d0dc5e17d763
2023-08-17 11:42:35 -07:00
Dean Lee 4857b61f8f ui/networking: pass network by value (#29448)
old-commit-hash: 1887d9197ab495bb8f4dd2826730e6d53528dd65
2023-08-17 11:37:42 -07:00
Justin Newberry 9265919881 SCons: respect cache read only (#29437)
* respect readonly

* gitignore and move to correct folder

* also copy old
old-commit-hash: 59abb469ea4a8443ea07a0638acbc6ece0c9ddd2
2023-08-17 10:30:55 -07:00
Greg Hogan cce2c732c6 setup cleanup (#29419)
* setup cleanup

* update ci

* update ci

* export variables for mac os

* check env

* what is in the profile script?

* install pyenv the same everywhere

* temporarily disable brew cache

* temporarily disable brew cache

* try fixing pyenv virtualenv-init

* try this

* inject shims path earlier

* try alternate install method

* switch back to brew install

* try         eval "$(pyenv init --path)"

* add eval "\$(pyenv init --path)"
old-commit-hash: ad32816fd6bdd744e7f596209822707494d3ba5e
2023-08-17 08:51:16 -07:00
Shane Smiskol 7a291211db Multilang: enable Thai (#29447)
enable thai in the ui
old-commit-hash: fb942020149934aeb59e5fbe644f72fa861a5fe9
2023-08-17 03:16:31 -07:00
Dean Lee a50a9ef9b4 ui/map: hide icon if no maneuver type (#29084)
hide icon if no maneuver type
old-commit-hash: 202b2f2113d48f517c64f0daf9ad2d61fdb0b7a6
2023-08-17 02:05:19 -07:00
Dean Lee f667936f3a ui/map: show map on destination set/change (#29327)
* show map on dest set/change

* check for rcv_frame

* clear current_nav_dest

* restore allow_open

* use requestShow

* cleanup

* one check

* revert behavior changes

* Update selfdrive/ui/qt/maps/map.cc

* more obvious

* Update selfdrive/ui/qt/maps/map.cc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 3a277f1b81fbb16673a77a475421a18751127cf2
2023-08-17 01:32:22 -07:00
Shane Smiskol 312d80c877 map: set destination marker visibility once (#29444)
set visibility once
old-commit-hash: da38aed48300ca1db0a1032c12c26b0268ebb03c
2023-08-17 01:02:59 -07:00
Shane Smiskol c817cb942d CAN fingerprinting test (#29427)
* timing test

* test

* fix

* print

* loop

* clean up

* wider range

* Update selfdrive/car/tests/test_models.py

* Apply suggestions from code review

* run many times

* Update selfdrive/car/tests/test_models.py

* run for many its

* run with unittest and print as list

* Update .github/workflows/selfdrive_tests.yaml

* Update .github/workflows/selfdrive_tests.yaml

* total time is super inconsistent (body)

* Update selfdrive/car/tests/test_models.py

* clean up

* clean up

* clean up

* this works!

* draft

* test suite not as modular

* try something like this

* can do kb, but not too representative

* clean up

* remove kb? it depends on signals

* clean up

* more clean up

* rename

* just measure all CANParsers

* can do all this manually

* but this is way simpler

* comment

* stash

* draft

* draft

* remove old script

* clean up

* revert

* use it

* remove test

* opt

* no partial

* remove

* revert test_models

* test can fingerprinting

* so much simpler!

* fix dict resizing

* simplify

* need to do this

* fix

* move to new file

* rename

* comment

* ignore function-uses-loop-variable
old-commit-hash: fd8f8d8785dd07777f150bd61c7ba9a0ed00d786
2023-08-17 00:57:12 -07:00
Shane Smiskol 52bc87c4f2 upadte process replay refs
old-commit-hash: e4ecb511c9d1342c9e42439004c388b9b15340a7
2023-08-17 00:45:44 -07:00
Shane Smiskol 11466f786b internal test_models: run on more segments (#29443)
100 more
old-commit-hash: ac3f87bad519df408a295d2e007e0de58b11690c
2023-08-17 00:25:14 -07:00
Shane Smiskol d87466556c Hyundai: match panda standstill check (#29442)
* bump panda

* clean up

* common?

* Revert "common?" (not now)

This reverts commit 197af7cdbb6a8c8e58fcbccca94f7db004ce91e4.

* fix

* no failures!

* remove time

* bump

* bump

* undo
old-commit-hash: 9d0d59ac9b40dabeb5984afc301917242da2515a
2023-08-17 00:06:38 -07:00