Commit Graph

4201 Commits

Author SHA1 Message Date
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
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
d4433cc2d8 nav: support multiple banners in route segment (#22722) 2021-10-28 19:11:29 +02:00
Jason Wen
257d2b447d hyundai_enable_radar_points: fix typo (#22724) 2021-10-28 19:09:22 +02:00
Willem Melching
0ba40954b9 maps: allow using MAPBOX_TOKEN env variable (#22721) 2021-10-28 16:13:44 +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
cydia2020
944578ad09 Toyota: gate enableDsu on no smartDSU (#22711) 2021-10-27 11:29:34 -07: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
Adeeb Shihadeh
950acb476c add inter fonts to assets (#22704) 2021-10-26 20:40:09 -07:00
Adeeb Shihadeh
23d6aeb4b7 installer: init submodules for all builds 2021-10-26 20:01:24 -07:00
Adeeb Shihadeh
f4c2398db4 add sdcard support (#22703)
* generalize

* factory reset
2021-10-26 19:34:08 -07:00
Gibby
46009fa6fd GM: 2016 Escalade ESV (#22670)
* Added 2016 Escalade ESV fingerprint and data.

* Updated CARS.md for GM vehicles

* Uploaded Escalade fingerprint

* Removed part about auto high beams for GM. Seems to work for some.

* Revert other modifications in CARS.md

* Revert other modifications in CARS.md

* Added test route for Escalade

* Added tunning for Escalade to reduce jerky steering

* Apply suggestions from code review

* Update selfdrive/car/gm/interface.py

* cleanup test route

Co-authored-by: Gibby <git@twoitguys>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-26 15:59:24 -07:00
Vivek Aithal
2ea4feffb9 plannerd: add useLaneLines to lateralPlan (#22699)
* add laneless toggle in lateral plan message

* update cereal

* add refs
2021-10-26 14:32:41 -07:00
Willem Melching
cca07c0c73 navigation: use mapbox proxy server (#22660)
* use mapbox proxy

* remove MapboxToken param

* do not log jwt

* remove import

* move to staging url

* put has_prime in ui state

* logic was flipped

* Update selfdrive/ui/qt/maps/map.h
2021-10-26 18:59:17 +02:00
Willem Melching
b078d8e425 Make BMX055 optional if MMC5603NJ present (#22698) 2021-10-26 17:43:33 +02:00
Willem Melching
89f311714c loggerd: set encodeIdx.valid if frame id is correct (#22634)
* loggerd: set encodeIdx.valid if frame id is correct

* check valid flag in test

* test cleanup

* bump cereal
2021-10-26 16:00:43 +02:00
Willem Melching
c30bd052c3 bump version to 0.8.11 2021-10-26 15:23:04 +02:00
Willem Melching
59accdd814 do not run on import 2021-10-26 14:49:51 +02:00
Adeeb Shihadeh
f2b48a1803 always show lane lines on HUD (#22693)
* always show lane lines on HUD

* update refs
2021-10-25 23:47:12 -07:00
qadmus
ca476650e9 GM: Cleanup & format values.py (#22671)
* cleanup & format gm/values.py like toyota/values.py

* Units and notes
2021-10-25 23:46:44 -07:00
Greg Hogan
7bb13acc45 ModelDataRaw struct part 4 (#22673)
* convert model data for leads to struct

* make things more consistent

* change names with path to plan

* consistent use of plural
2021-10-25 16:46:09 -07:00
Adeeb Shihadeh
9ca16560e2 updated: add a few missing type hints 2021-10-25 15:58:26 -07:00
Adeeb Shihadeh
7394956a90 temporarily disable per-core cpu usage check 2021-10-25 15:03:28 -07:00
sshane
82ad6642e2 Quiet steer temp unavailable alert at standstill (#22680)
* only sound critical alert when not at standstill

* need to flip

* just change the one line
2021-10-25 14:28:05 -07:00
HaraldSchafer
7868baeac9 e2e long planner: use position, speed and accel (#22688)
* a little bit more moderate

* cleaner
2021-10-25 14:03:41 -07:00
Adeeb Shihadeh
4b4efead89 count_events: handle missing logs 2021-10-25 10:25:23 -07:00
Adeeb Shihadeh
93d87cdc6f test_boardd: don't modify environment at import time 2021-10-25 09:47:07 -07:00
Adeeb Shihadeh
b5960b9dc8 move nose tests to unittest (#22665)
* move to unittest

* boardd loopback

* no more nose

* phone only

* fix panda decorator
2021-10-25 09:44:04 -07:00
Dean Lee
af7dba9250 replay: use an enum for flags (#22635)
* enum flags

* continue

* remove yuv flag for now
2021-10-22 23:28:53 -07:00
Adeeb Shihadeh
7f3904ee8e UI: increase camera view update frequency 2021-10-22 21:11:57 -07:00
Adeeb Shihadeh
84d5adedd8 UI: fix fcc.html when using QRC 2021-10-22 21:04:00 -07:00
Vivek Aithal
2006aa412e locationd: Gyro bias initial covariance (#22622)
* reduce cam odo std multiplier

* increase gyro obs noise

* increase initial cov for gyro bias
2021-10-22 21:00:01 -07:00
Adeeb Shihadeh
cd5bc565d3 camerad: allow core affinity setting to fail while offroad (#22664)
Co-authored-by: Comma Device <device@comma.ai>
2021-10-22 20:57:21 -07:00
Adeeb Shihadeh
4749815419 little sound tester 2021-10-22 17:50:15 -07:00
Adeeb Shihadeh
c4de1fef4f UI: don't block UI on vipc recv (#22644)
* UI: don't block UI on vipc recv

* use a timer

* move that
2021-10-22 14:16:14 -07:00
Jason Young
68333dce60 VW MQB: Volkswagen Taos Mk1 (#22653)
* VW MQB: Volkswagen Taos Mk1

* add test route
2021-10-21 20:26:33 -07:00