Commit Graph

4201 Commits

Author SHA1 Message Date
Adeeb Shihadeh
bc57ffd16f increase scons cache size for CI devices 2021-11-30 14:51:31 -08:00
Dean Lee
eb0724d7e3 soundd: fix test case (#23075)
* init sound_stats

* send deviceState msg
2021-11-30 11:31:46 -08:00
Vivek Aithal
b57f55088e add a note in loc_kf (#23082) 2021-11-30 10:51:32 -08:00
HaraldSchafer
eda6993043 Toyota pedal rewrite (#23067)
* pedal redo

* add offset to compensate for creep and windbrake

* offset in standard units

* wrong size

* better creep values

* update ref
2021-11-30 10:50:06 -08:00
grekiki
91f87e3675 Replace list by generator (#23077) 2021-11-30 14:15:42 +01:00
Vivek Aithal
5040427cb7 Mesh3D: Add accelerometer bias to loc_kf (#22880)
* add accel-bias to mesh3d

* remove acc scale
2021-11-29 19:30:14 -08:00
Dean Lee
348d2d2b0d rename yuv streams (#23071)
* rename yuv streams

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-29 18:14:59 -08:00
Igor Biletskyy
65ca9be82a boardd: split usbprotocol unittest and fix paren order in data length assert (#23065) 2021-11-29 15:34:33 -08:00
HaraldSchafer
048cc3ac9f Longcontrol : pid error should be 0 when plan is followed (#23066)
* v_pid error should be 0 when plan is followed

* update ref
2021-11-29 15:22:02 -08:00
Vehicle Researcher
29a8fe272c fix pmic temp scale on comma two 2021-11-29 13:41:48 -08:00
Willem Melching
f7c46c6949 Do not run code on version.py import (#23063)
* Do not run code on version.py import

* fix athena
2021-11-29 19:38:55 +01:00
Willem Melching
7c8044d2db Add LastPowerDropDetected and create bootlog before clearing params (#23062)
* Add LastControlledShutdown and create bootlog before clearing params

* update param name

* sorting
2021-11-29 15:51:27 +01:00
Dean Lee
b2bcacf590 ui: singleton networkAccessManager (#22994) 2021-11-29 14:49:53 +01:00
Dean Lee
dbec761941 logreader: support reading from corrupt log (#23050)
* catch exception outside loop

* print decompress error

* add test case for corrupt log

* fix decompressbz2 stuck if log is corrupt

* recovered from corrupt data

* add output

* ass space

* std::endl

* override load(), load from buffer

* override FrameReader::load to load from the buffer

* replace NULL with nullptr

* fix test case for corrupt log

* Trigger Build

* check bzerror too

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-29 14:10:24 +01:00
Willem Melching
a2f32fd3e1 Clear loggerd locks once on boot (#23060)
* add test for clear_locks

* move to bootlog

* simplify test
2021-11-29 12:30:28 +01:00
Dean Lee
296c4076a2 framereader: refactor seeking (#22926)
* refactor seeking

* ckeck packets.empty()

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-29 12:09:14 +01:00
Adeeb Shihadeh
ba67c355db manager: kill procs in parallel (#23010)
* manager: kill procs in parallel

* oops block
2021-11-29 11:49:04 +01:00
Dean Lee
00db14af64 cameraview: fix frameskip (#23022)
* fix frameskip

* sync upload->render

* cleanup

* comment

* rename to latest_texture_id
2021-11-29 11:35:34 +01:00
Shane Smiskol
113988ae31 longitudinal: only apply overshoot prevention when braking (#22986)
* only if braking is desired

* use v_target to determine stopping

* more clear?
2021-11-29 11:29:32 +01:00
Dean Lee
35c0319f6c boardd: new function sync_time (#23033)
* sync_time

* add direction

* Update selfdrive/boardd/boardd.cc

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* enum class

* rename

* caps

* lambda get_time_str

* Revert "lambda get_time_str"

This reverts commit 5eb6e19c5130b28963e9555f6c73835ac30d817d.

* static

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-29 11:19:38 +01:00
Dean Lee
3fd0264960 refactor httprequest: emit single signals (#23039)
* refactor httprequest

* Trigger Build
2021-11-29 11:19:08 +01:00
Dean Lee
5394fe1ae7 DevicePanel: split long constructor into multiple functions (#23043)
* begin refactor

* split long constructor to multiple functions

* one connection to signal

* merge master
2021-11-29 11:14:34 +01:00
Dean Lee
f5e4867864 replay: refactor http download (#23052)
* refactor http download

* use chunk_size instead of parts

testcase:set chunksize to 5mb

* use template

space

* cleanup

* remove unused include

* check buffer overfllow

* simplify print download speed
2021-11-29 11:13:30 +01:00
Erich Moraga
5abe293f61 Fix comment typo: steerRation -> steerRatio (#23058) 2021-11-28 19:15:36 -08:00
Dean Lee
a449b856ca framereader: fix crash after fallback to cpu decoding (#23055) 2021-11-28 13:29:40 -08:00
Adeeb Shihadeh
8160cf3c1b camerad: remove camera frame stream (#23045)
* camerad: remove camera frame stream

* fix release files
2021-11-27 21:58:21 -08:00
Igor Biletskyy
b2a018643f Extra check for tail_size length (#23047) 2021-11-27 12:22:54 -08:00
George Hotz
c6f62ebc4f Revert "boardd: be careful with paren order in assert"
This reverts commit 50cd8588a2.
2021-11-27 00:57:30 -05:00
George Hotz
50cd8588a2 boardd: be careful with paren order in assert 2021-11-27 00:28:33 -05:00
Dean Lee
e376a621ba ui/device: change last_brightness from float to int (#23029) 2021-11-26 14:59:23 +01:00
Shane Smiskol
93fd662adf Clean up planner files (#23031)
* clean up planner files

clean up planner files

* fix plant instance
2021-11-26 14:57:39 +01:00
Dean Lee
1d323e0fd6 loggerd: add test case for trigger_rotate (#23038)
* test rotate

* remove global LoggerdState
2021-11-26 14:53:09 +01:00
Dean Lee
5ae5174509 framereader: replace swscale with libyuv, reduce cpu usage by half (#22992)
* use libyuv

* cleanup
2021-11-26 14:41:14 +01:00
Dean Lee
ac179e2c36 qt/settings: reuse params (#23041) 2021-11-26 14:39:25 +01:00
Dean Lee
723c8d6a7c qt/settings: use default parameter for params.get (#23042) 2021-11-26 14:39:04 +01:00
Willem Melching
5069852573 navd: render map into VisionIPC (#22800)
* navd: render simple map

* render route

* offscreen rendering

* cleanup

* more cleanup

* render into visionIPC

* rename class

* split position update from route update

* stop broadcast if not active

* gate vipc server behind flag

* add python library

* faster

* no vipc from python

* put behind extras

* only send when loaded

* add glFlush just to be sure

* cleanup settings into helper function

* function ordering

* broadcast thumbnails

* put behind param

* adjust zoom level

* add route to python bindings

* revert that freq change

* add logging if map rendering is enabled

* use rlogs if available

* bump cereal
2021-11-26 14:38:02 +01:00
eFini
21ff97b8c9 UI: minor changes to make it translation friendly (#23032) 2021-11-25 22:30:07 -08:00
grekiki
68c1a666a0 replace list comprehensions with generators (#23037) 2021-11-25 15:53:11 -08:00
Jason Young
adaffb3355 VW MQB: Add FW for 2013 Volkswagen Golf (#23036) 2021-11-25 14:37:33 -08:00
ZwX1616
1ec8f03ec6 test: Replay both models on C2/C3 (#23019)
* add dcam stream

* delete model_test

* both in jenkins

* update spinner

* get filename fn

* they are not random names

* update route

* new ref commit

* temporarily resize tmp

* clean up unlog send

* need calib 0

* revert device

* cleanup

* arg

Co-authored-by: Comma Device <device@comma.ai>
2021-11-24 15:59:19 -08:00
Dean Lee
ab9c7a11a9 boardd: const reference pandaStates to avoid copy (#23030) 2021-11-24 15:45:48 -08:00
Vivek Aithal
8b6a147583 locationd: Fix Nav localization reliability (#22959)
* modify reset logic

* remove debug statements

* use ecef pos and vel covariances during reset

* reset orientations initialized to 0,0,GPSbearing

* refactor nav fix

* add fake gps observations to control ecef pos and ecef vel std

* replace fake_P with individual fake cov

* set gps mode flag

* add gps invalid flag names

* update refs

* more accurate gps accuracy check + update refs
2021-11-24 15:24:25 -08:00
Adeeb Shihadeh
5bcb4c0358 process replay: add cx9 route to migration list 2021-11-24 14:08:46 -08:00
Dean Lee
b5eb02181c loggerd: add test case for sync_encoders (#23020) 2021-11-24 13:34:16 -08:00
Adeeb Shihadeh
eb55226c2b update refs for new mazda name 2021-11-24 13:31:02 -08:00
Adeeb Shihadeh
f0f7359f6a mazda: capitalize CX9 like all others cars 2021-11-24 11:53:10 -08:00
Robbe Derks
1fd8fc4593 Typo in Quectel FCC ID 2021-11-24 11:19:04 +01:00
Adeeb Shihadeh
239c7c1d4e Bring back Accord 2021 + 2021 Hybrid (#23021)
Co-authored-by: Chris Souers <csouers@gmail.com>
2021-11-23 23:19:11 -08:00
Dean Lee
c77354009c panda: add unit tests for usb protocol (pack/unpack) (#22955)
* prepare for unit tests

* add to selfdrive_tests.yaml

* test header

* test chunk count

* rename test function

* continue

* don't check chunks count

* test recv_can

* continue

* small cleanup

* merge master

* cleanup

* rename functions

* test different packet size

* fix operator precedence problem

* refactor unpack_can_buffer

* cleanup test

* cleanup unpack_can_buffer

* add test for multiple pandas

* rename to test_panda

* restore test_boardd

* rename to test_boardd_usbprotocol

* fix typo

* bus_offset = [0,4]

* change src

* use USBPACKET_MAX_SIZE
2021-11-23 20:15:22 -08:00
Dean Lee
75dd0d6296 loggerd: split loggerd.cc into three files 2021-11-23 17:53:49 -08:00