Commit Graph

5062 Commits (8da3cd3cdd6fdf82960f393c79db6ce5098b3f44)

Author SHA1 Message Date
Dean Lee 8da3cd3cdd
util:: remove unused funtion base_name (#22759) 2021-10-31 13:10:27 -07:00
lipniak 1d55f2f23e
tools/setup: do not change global state (#22735)
* tools/setup: do not change global state

1. download packages in the venv
2. never change global python version

* update_requirements.sh: install to system if used by comma employees

* bump pip & pipenv versions

* no --upgrade

* run pre-commmit install in venv

* for consistency

Co-authored-by: predicate@bonzo <noreply@example.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-31 16:37:07 +01:00
Andrew b9c4f0c0ff
add new elantra hev 2021 fingerprints (#22727)
* add new elantra hev 2021 fingerprints

* add another transmission fp

* Remove duplicates

* Also duplicate

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-31 13:51:41 +01:00
Adeeb Shihadeh f935ad3c9b bump panda 2021-10-30 15:38:32 -07:00
Adeeb Shihadeh 40b7962b93
Mazda: fix up cruise cancellation (#22750)
* also cancel on cruiseControl.cancel

* set counter in button msg
2021-10-30 13:37:52 -07:00
Adeeb Shihadeh 6bca73edd8 bump panda 2021-10-30 12:39:56 -07:00
Adeeb Shihadeh 1848fed6e2
Mazda: send dash alerts (#22730)
* Mazda: send dash alerts

* no actuators

* ldw

* send alerts

* test

* use cam parser

* add generic toggle

* wip

* revert some stuff

* try that

* steer required works

* cleanup

* bump panda

* little more cleanup

* no lane lines

Co-authored-by: Comma Device <device@comma.ai>
2021-10-30 10:56:30 -07:00
Jason Wen 248285d5c5
Hyundai: Add FW for 2022 Hyundai Sonata (#22702)
* Hyundai: Add FW for 2022 Hyundai Sonata

* Update selfdrive/car/hyundai/values.py

* sort engine fw

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-30 15:39:16 +02:00
Dean Lee 7486a42935
boardd: pass std::vector pandas by reference (#22741) 2021-10-30 15:34:33 +02:00
Adeeb Shihadeh b76ccaac37
better alerts for temporary EPS faults (#22747)
* better alerts for temporary EPS faults

* reorder
2021-10-29 23:20:59 -07:00
Adeeb Shihadeh f9b6b03f5d Mazda: car state cleanup + comments 2021-10-29 14:40:58 -07:00
Adeeb Shihadeh 385f3c5387
controls: don't wind up while EPS is faulted or below min steer speed (#22739)
* controlsd: don't wind up while EPS is faulted

* also check if above min steer speed

* car params
2021-10-29 14:13:41 -07:00
Adeeb Shihadeh 3312bf6d15
lower profile below steer speed alert (#22740) 2021-10-29 13:39:12 -07:00
Adeeb Shihadeh 4bbeb27f9b
Mazda: allow engaging below min LKAS speed (#22737)
* Mazda: allow engagement below minimum LKAS speed

* bump panda

* bump panda
2021-10-29 13:07:52 -07:00
Dean Lee f7461ed9fc
camera_common: new class Debayer (#21854)
* new class Debayer

* merge master

* pass in cl_event

* needs define, class is not the same

* match clEnqueueCopyBuffer api

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-29 16:48:08 +02:00
Dean Lee b8be692c1a
config_isp: remove hardcoded buffer size (#22119) 2021-10-29 16:05:19 +02:00
Dean Lee 652c42da2c
util: add safe write functions (#22160)
* add safe write functions

* log error

* bzfile safe_fopen&safe_flush

* update test_case

* trigger ci

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-29 13:23:31 +02:00
Robbe Derks 585c16cd2a
Multipanda support (#22402)
* squash all PR commits for easy rebase

* merged all panda rx can into one message

* fix buffers in can_send

* more cleanup and minor fixes

* fix even more stuff

* fix non-allocated send buffer

* make connecting more robust

* fix bus offset

* fix controls_mismatch?

* simplify mismatch check

* C++ style struct

* fix connect loop

* update ref

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-29 13:04:26 +02:00
Willem Melching 25e4e94691
PyQt demo app (#21625)
* build python helpers lib

* call setMainWindow from python

* put in helper lib

* linter

* move to scripts
2021-10-29 12:37:17 +02:00
Dean Lee 1f39d8cee6
util: add new function create_directories with unit tests (#21871)
* util::create_directories

* check bool ret

* don't assume mask

* rename with_umask to no_umask

* remove umask

* rebase master

* rebase master

* 0755
2021-10-29 12:27:35 +02:00
Dean Lee d70e49dca5
replay: build on devices (#22632)
* there is no QThread::create on device

* add files to files_common

* modify SConscript

* no memory_resouce on device

* #define HAS_MEMORY_RESOURCE

* fix hangs on shutdown

* build on device with the --extra flag

* delete later

* setup -> extras

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-29 12:21:57 +02:00
Dean Lee 18caf3535b
loggerd: fix concurrency issues in sync encoders (#22590)
* sync_encoders

* add variable camera_synced

* cleanup
2021-10-29 12:21:02 +02:00
Dean Lee 921600b95c
framereader: use swscale to handle the YUV conversion (#22710) 2021-10-29 12:14:14 +02:00
Dean Lee 3b936aaca9
remove unused signal displayPowerChanged (#22719) 2021-10-29 12:09:03 +02:00
Willem Melching 51c4b3c34b
Add 2019 Rav4 engine FW (#22733) 2021-10-29 12:08:04 +02:00
lipniak e68849cfc8
tools: add info on common issues (#22709)
* tools/README.md: add more information

1. Add info about OpenCL drivers
2. Add info about pipenv environment

* ubuntu_setup.sh: add clinfo

Adds the clinfo command so you can verify your OpenCL installation.

* tools/README.md: add info on GUI WSL
2021-10-29 11:19:43 +02:00
Willem Melching d656a46311
README.md: mention docs.comma.ai 2021-10-29 10:45:07 +02:00
Willem Melching 8c73e67467 add nav improvements to release notes 2021-10-29 10:39:22 +02:00
Jason Young b49f518782
GM: EPS fault workaround (#22404)
* seems legit

* panda -> loopback

* fix comment

* add some "why" comments for the next guy

* re-test with stock 50Hz rate

* ugly test

* Update selfdrive/car/gm/carstate.py

Co-authored-by: qadmus <42746943+qadmus@users.noreply.github.com>

* update refs

* Update selfdrive/car/gm/carstate.py

Co-authored-by: qadmus <42746943+qadmus@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-28 16:54:12 -07:00
Adeeb Shihadeh 2b4a655f36
Mazda: fix blinker states (#22718)
* Mazda: fix blinker states

* not lamp

* back to lamp to fix convenience blinkers
2021-10-28 14:05:12 -07:00
Adeeb Shihadeh e33cd47b5c UI: add opensans semibold 2021-10-28 13:07:39 -07:00
Willem Melching 48ef2bcbf6
Small docs cleanup (#22725)
* add images

* Add root README.md to docker container
2021-10-28 19:16:39 +02:00
Willem Melching d4433cc2d8
nav: support multiple banners in route segment (#22722) 2021-10-28 19:11:29 +02:00
Dean Lee 92682cb8e0
params: remove params_pxd.pxd (#22723) 2021-10-28 19:10:55 +02:00
Jason Wen 257d2b447d
hyundai_enable_radar_points: fix typo (#22724) 2021-10-28 19:09:22 +02:00
Willem Melching aa8952d0b1
Add sphinx dependencies to Pipfile (#22720) 2021-10-28 17:32:29 +02:00
Willem Melching 0ba40954b9
maps: allow using MAPBOX_TOKEN env variable (#22721) 2021-10-28 16:13:44 +02:00
Willem Melching b816b5b644
Sphinx docs generation (#22697)
* add sphinx

* switch theme

* Experiment: sphinx docs generation updated (#22708)

* moved build to root gitignore, added .gitkeep

* Improved makefile doc build process

- Removed auto-generated docs from source control
- Moved apidoc.sh into Makefile
- Removed make.bat (can add back if Windows support desired)
- Added sphinx viewcode and markdown extensions
- Added feature to source /docs in build, so any .rst file in /docs will
  override the respective file during the build process
- Added feature to copy all markdown/rst files from source into /build/
  during build process so they can be easily referenced while writing
  docs (see examples in index.md)
- Wrote basic starter index.md file

TODO: Add new dependencies to Pipfile [dev-packages]

* Revert accidental modification to Pipfile

* fix command substitution

* exclude xx

* improve docs

* dont include all docs in release build

* Add dockerfile

* update title

* include normal readme

* build container in CI

* use buildkit

* add login

Co-authored-by: Chad Bailey <chadbailey904@gmail.com>
2021-10-28 15:14:37 +02:00
Robbe Derks efb5abec41
Make longitudinal planning triggered on model (#22641)
* Make long planning triggered on model

* fix process replay

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-28 12:27:09 +02:00
Robbe Derks 21c4bfc7be
Pigeon (ublox) initialization fixes (#22712)
* add timeout to wait_for_ack

* fix ignition edge detection race condition

* local_ignition -> ignition_local

* gate power_save on !pigeon_active

* millis_since_boot

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-28 11:23:19 +02:00
Dean Lee 3f4cc9a246
Qt/CommaApi: cache private key (#22715)
* cache private key

* space

* no need to check mtime

* call_once

* simplify
2021-10-27 21:12:00 -07:00
Adeeb Shihadeh 687925c775 fix dashcam spelling 2021-10-27 17:55:48 -07:00
Adeeb Shihadeh cf6c129f80 add replay to pc release files 2021-10-27 15:22:26 -07:00
Vehicle Researcher 90c6182a4b add tools/lib to releas files for tests 2021-10-27 14:14:43 -07:00
Adeeb Shihadeh 1e1f948c0c jenkins: run build_release.sh from source dir 2021-10-27 12:28:01 -07:00
cydia2020 944578ad09
Toyota: gate enableDsu on no smartDSU (#22711) 2021-10-27 11:29:34 -07:00
Andrew 999b2ee5cc
tools/setup: add missing package for plotjuggler (#22713) 2021-10-27 10:56:41 -07:00
Willem Melching 63b85ca1e2 bump submodules 2021-10-27 11:57:31 +02:00
Adeeb Shihadeh 7feae28705
run onroad tests on release build (#22700)
* check startup aelrt

* release decorator

* run in jenkins

* run onroad tests

* no push

* fix release2 build

* fix path

* no overwrite

* single release build script

* make files_eon non empty

* files

* run in source

* add that for now

* print

* ignore initialzing

* print

* fetch

* run tests last

* check alert text

* revert some stuff

* fixup jenkinsfile

Co-authored-by: Comma Device <device@comma.ai>
2021-10-26 23:50:05 -07:00
Adeeb Shihadeh 5b331fd6f5
don't set core affinity on PC (#22706) 2021-10-26 21:51:46 -07:00