Commit Graph

7421 Commits

Author SHA1 Message Date
Adeeb Shihadeh
71d317872a fix startup spinner for non-C2 (#19536)
* limit build progress

* cleanup

* types

* comment
2020-12-18 14:47:25 -08:00
Adeeb Shihadeh
d61b664785 more external cleanup 2020-12-18 13:28:50 -08:00
Adeeb Shihadeh
a4cec444eb bump version to 0.8.2 2020-12-18 12:23:59 -08:00
Willem Melching
cd6f26664c Add timeout to dbus calls 2020-12-18 14:06:49 +01:00
Willem Melching
dbd7b10bae Add exception handlers to dbus network stats 2020-12-18 13:42:35 +01:00
grekiki
5b26c97141 Qt Offroad stats (#19498)
* probably broke a lot, need the commit though

* finally works

* make it work...

* ...

* kind of works

* better styling

* all should work

* tiny cleanup

* temp

* looks nicer

* create JWT in C++

* kilometers -> km

* use correct free methods

* dont put code in assert statement

* Build JWT payload dynamically

* get dongle id once

* include cleanup

* Remove qDebug

* Update drive_stats.cc

Github is a nice editor :)

* swap week and all and fix sconscript

* install openssl

* openssl include dirs on mac

* is this where openssl is?

* It's here

* small cleanup

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-12-18 13:29:20 +01:00
Willem Melching
00620575d9 Only register when needed (#19526)
* only register when needed

* block for imei

* Api already imports jwt, so no need for late import

* Small cleanup

* oneliner

* Add spinner to regestering

* Keep trying
2020-12-18 13:17:23 +01:00
Adeeb Shihadeh
b276881fcd agnos updater (#2600)
* agnos updater

* add manifest

* fix path

* get manifest from overlay

* update manifest

* remove merge markers

* add streaming decompressor

* dont need read all

* Unsparsify

* Fix output filename

* Optimization

* cleanup

* Small cleanup

* Read manifest from merged overlay

* Write hash at end of partition

* Sync before writing hash

* Write bytes in file

* add manifest with image sizes

* Fix manifest path

* File was closed already

* Format string

* Put raw hash

* Read hashes in launch script

* update launch script

* should be agnos version

* fix slot

* Make sure we clear the hash

* Verify partition size

* move updated

* Standalone flasher

* Don't rely on ordering

* Get path

* Debug log

* Download agnos

* Info is enough

* update manifest

* Remove f

* Check downloader return code

* Exit on wrong manifest

* Fix typos

* Set pythonpath before hardware init

* move agnos into hardware folder

* remove comments

* Fix abstractmethod

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-12-18 13:17:12 +01:00
Adeeb Shihadeh
6a0e9044c1 fix unkillable reboot logging on tici 2020-12-17 17:53:03 -08:00
Comma Device
717e49019f increase controls alert timeout 2020-12-17 15:22:55 -08:00
Adeeb Shihadeh
402d401e12 Car Port: 2021 Toyota Camry (TSS 2.5) (#2721)
* 2021 camry port

* tss2 adas

* test route
2020-12-17 13:29:50 -08:00
Willem Melching
776a67ad2e remove commIssueWarning from events 2020-12-17 22:25:22 +01:00
Adeeb Shihadeh
40a4bd9fc7 disable updater for oneplus EONs 2020-12-17 12:20:07 -08:00
Adeeb Shihadeh
220853730d manager cleanup (#2634)
* start cleanup

* add uninstall to hw abstraction layer

* cleanup

* litte more

* don't build at import time

* fix tests

* don't build by default

* sync
2020-12-17 11:45:41 -08:00
Dean Lee
bc1cfa6d4f cleanup qcom2 (#19506)
* cleanup qcom2

* define DEBAYER_LOCAL_WORKSIZE in camera_qcom2.h
2020-12-17 11:43:50 -08:00
baldwalker
43c05aa2c6 Separate Hyundai Ioniq Hybrid and EV 2020 Premium SE (#19500)
* Update carcontroller.py

* Update hyundaican.py

* Update interface.py

* Update values.py

* Update values.py

* Update values.py

* Update values.py

* Update values.py

* Update README.md

* Update test_car_models.py

* cleanup interface
2020-12-17 11:25:56 -08:00
Robbe Derks
91c760a9e5 Revert MCLK change 2020-12-17 18:08:58 +01:00
robbederks
18ab822213 Move MCLK freq on tici (#19494)
* Move MCLK freq

* change PLL settings to compensate

* messed that up

* undo extclk change, move the internal freq. Does mean pixclk is decreased from 88MHz to 80MHz though

Co-authored-by: Comma Device <device@comma.ai>
2020-12-17 11:29:34 +01:00
Adeeb Shihadeh
8674b023ba HW abstraction layer (#19530)
* start hw refactor

* move that

* pins

* put that back
2020-12-16 21:30:23 -08:00
Harald Schafer
c09dfdf244 new ref 2020-12-16 18:56:25 -08:00
Igor
d93f07f5e6 Fix TSS2 creep issue, no need to send standstill request (#2716)
* Fix TSS2 creep issue, no need to send standstill request

* Forgot to add import

* Changed set to look in from TSS2_CAR to NO_STOP_TIMER_CAR
2020-12-16 17:40:52 -08:00
Shane Smiskol
89a6008841 don't wait for 4 seconds before it starts steering again after steering fault (#19520) 2020-12-16 12:24:42 -08:00
Adeeb Shihadeh
421c494237 fixed fingerprint for cpu usage test 2020-12-16 12:14:18 -08:00
Igor
717bc747c3 Parametrize startingBrakeRate (#19511)
* Parametrize startingBrakeRate

* new ref_commit
2020-12-16 20:58:07 +01:00
Chris McCammon
1872d28739 2020 RDX fw (#19523) 2020-12-16 11:46:56 -08:00
Chris McCammon
3f7484df9e Rav4 and Rav4 Hybrid FW (#19501)
* Rav4 Limited [9363705a7bbefea]
* Rav4 Hybrid [8b9ff04f758b61ce]
2020-12-16 10:53:10 -08:00
andrewcopenpilot
4fcf8678f6 Fix to allow brakes to release on resume press (#2709) 2020-12-16 18:29:52 +01:00
jcak
d3d57b0744 Add Forester 2020 fingerprint (#2763)
* Add Forester 2020 fingerprint

* Update selfdrive/car/subaru/values.py

* combined Forester 2019 & 2020 fingerprints

2020 model had some additional fingerprints than the 2019 model. Merged rather than adding separately.

* Added Forester 2020 to readme

* Updated to include forester touring as well

added additional messages as per #19499 (updating same fingerprint)

* Delete Forester 2019 sport - duplicate fingerprint

* Update values.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-12-16 11:58:07 +01:00
Greg Hogan
7a121862a8 athenad: add getNetworkType (#19517) 2020-12-15 23:25:52 -08:00
HaraldSchafer
c89ec883cc Early model 081 (#19510)
* c91b82af-c0b0-4378-8431-3e6efc26b084/325

* 0b6e45f8-21c1-408a-b61d-3dce02a69d23/200

* update model ref
2020-12-15 22:21:30 -08:00
Adeeb Shihadeh
a2c6fdd14c Revert "Handle python-dbus not installed"
This reverts commit 25054cdc05.
2020-12-15 20:29:24 -08:00
Chris McCammon
4428c96d08 2021 Toyota Highlander / Highlander Hybrid fw (#2729)
* Highlander TSS2.5 fw versions

* 2021 Highlander Hybrid fw - not yet confirmed

* update model years
2020-12-15 19:51:20 -08:00
Adeeb Shihadeh
c57ee16e86 Set GPU priorities + improved modeld priorities (#2691)
* give gpu threads rt priority

* modeld gets highest prio on core 2

* fix frame stream

* lower prio of cal thread

Co-authored-by: Comma Device <device@comma.ai>
2020-12-15 19:22:03 -08:00
Chris McCammon
bf8ef0251d Rav4 2021 fw (#19514) 2020-12-15 17:33:43 -08:00
Dean Lee
d31a87cd21 qcom: make camera_process_frame more readable (#2765)
* more readable

* rgb_addr

* offset

* speed up if statement

* --self_recover

* rgb_addr_offset

* x_offset&y_offset

* static rgb_roi_buf & conv_result

* remove variables from struct

* simplify read sensorEvents

* use i for loop

* split to functions

* make it works

* y_offset should be ROI_Y_MAX-ROY_Y_MIN+1

* std::size is better than ARRAYSIZE

* rebase master

* shorter variable name

* Revert "shorter variable name"

This reverts commit 47612e3a741d8b6ddfd72bccbb5337882b369224.

* std::fill_n

* reday for merge

* Revert "y_offset should be ROI_Y_MAX-ROY_Y_MIN+0"

This reverts commit 1f8526fb1c59c89d747210eb8bf17a2688a4f2bc.
2020-12-15 16:39:38 -08:00
Comma Device
1ea307a299 factory reset -> system reset 2020-12-15 23:35:55 +00:00
Comma Device
54c6931b5c fix camera malfunction ui timeout 2020-12-15 14:16:47 -08:00
Dean Lee
1ee8287705 cleanup camera malfunction alert (#2751)
* cleanup alert

* move ui_draw_vision_alert out of ui_draw_vision
2020-12-15 13:06:22 -08:00
Willem Melching
93cc7335fc paint.cc: lower y offset 2020-12-15 14:47:53 +01:00
Comma Device
536a8c5876 fix camerad qcom2 build 2020-12-15 04:52:40 +00:00
Adeeb Shihadeh
c4a05ba369 Qt system reset (#19502)
* qt factory reset

* confirmation

* better ui
2020-12-14 19:49:01 -08:00
Dean Lee
c1f3c3b2df camera_qcom: read SensorEvents in op thread (#2764)
* get acceleration in op thread

* std::atomic last_sag_acc_z

* cleanup
2020-12-14 16:54:49 -08:00
ZwX1616
1c21fc100d qcom2 init hevc tier correctly (#19496)
* qcom2 init tier correctly

* need to cast

Co-authored-by: Comma Device <device@comma.ai>
2020-12-14 16:24:49 -08:00
George Hotz
5fdda8dbd8 Thneed refactors for future functions (#2673)
* delete debug

* thneed updates, but it seems slower

* thneed refactor

* refactor touchups

* add back asserts

* fix uaf

* track the size for local args

* final thneed refactor

* switch kgsl_command_object to avoid memory leak

* comments

* unused includes

Co-authored-by: Comma Device <device@comma.ai>
2020-12-14 15:46:49 -08:00
Dean Lee
554ea8f54a refactor imgproc/utils (#2766)
* refactor imgproc/utils

* const

* space

* return value
2020-12-14 15:33:40 -08:00
George Hotz
cb238fd2ee Set camerad CL priority to 4 (#2747)
* priority 2 get

* add to files_common

* cl_ext_qcom

Co-authored-by: Comma Device <device@comma.ai>
2020-12-14 13:59:48 -08:00
Adeeb Shihadeh
238ac19ba9 remove fsck logging in updated 2020-12-14 10:51:03 -08:00
Adeeb Shihadeh
dfbd658a2f log remote and branch in sentry (#16766)
* log remote and branch in sentry

* also add to crash.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-12-14 16:11:54 +01:00
Willem Melching
9cd7a7c14b set CarState.steeringRateLimited for Hyundai (#19495)
* set CarState.steeringRateLimited for Hyundai

* update ref

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
2020-12-14 16:11:32 +01:00
Willem Melching
25054cdc05 Handle python-dbus not installed 2020-12-14 15:04:17 +01:00