Commit Graph

1821 Commits

Author SHA1 Message Date
Chris McCammon 2442d7522c Rav4 2021 fw (#19514)
old-commit-hash: bf8ef0251d
2020-12-15 17:33:43 -08:00
Dean Lee 2865d75739 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 47612e3a74.

* std::fill_n

* reday for merge

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

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

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

* confirmation

* better ui
old-commit-hash: c4a05ba369
2020-12-14 19:49:01 -08:00
Dean Lee 6ab28556c8 camera_qcom: read SensorEvents in op thread (#2764)
* get acceleration in op thread

* std::atomic last_sag_acc_z

* cleanup
old-commit-hash: c1f3c3b2df
2020-12-14 16:54:49 -08:00
ZwX1616 1f99fdfc50 qcom2 init hevc tier correctly (#19496)
* qcom2 init tier correctly

* need to cast

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1c21fc100d
2020-12-14 16:24:49 -08:00
George Hotz 02a2f9ca15 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>
old-commit-hash: 5fdda8dbd8
2020-12-14 15:46:49 -08:00
Dean Lee 890df06246 refactor imgproc/utils (#2766)
* refactor imgproc/utils

* const

* space

* return value
old-commit-hash: 554ea8f54a
2020-12-14 15:33:40 -08:00
George Hotz 2cedc8715e 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>
old-commit-hash: cb238fd2ee
2020-12-14 13:59:48 -08:00
Adeeb Shihadeh f359b4cf49 remove fsck logging in updated
old-commit-hash: 238ac19ba9
2020-12-14 10:51:03 -08:00
Adeeb Shihadeh 605eecdd18 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>
old-commit-hash: dfbd658a2f
2020-12-14 16:11:54 +01:00
Willem Melching 494353099b set CarState.steeringRateLimited for Hyundai (#19495)
* set CarState.steeringRateLimited for Hyundai

* update ref

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
old-commit-hash: 9cd7a7c14b
2020-12-14 16:11:32 +01:00
Willem Melching d47396f4da Handle python-dbus not installed
old-commit-hash: 25054cdc05
2020-12-14 15:04:17 +01:00
DreZee669 91fd5c2dcf Updated FW values for honda civic (#2752)
* Update values.py

Added ecu fw versions for my 2k16 honda civic sedan

* Update values.py
old-commit-hash: 790ad9296a
2020-12-14 14:16:22 +01:00
Willem Melching 79275c08e1 add optional margin to car_space_to_full_frame check
old-commit-hash: 11fb6efba2
2020-12-14 14:09:26 +01:00
Willem Melching 2edf720d53 paint.cc: fix y offset
old-commit-hash: bbc289b671
2020-12-14 13:38:00 +01:00
Adeeb Shihadeh c09d84218d model timing benchmark script
old-commit-hash: 5ba7276118
2020-12-13 19:08:49 -08:00
Adeeb Shihadeh 83cfbeaf9a adb over smays
old-commit-hash: 48306360a1
2020-12-12 19:21:45 -08:00
Dean Lee 75e3d20dac convert loadyuv.c to loadyuv.cc (#2754)
old-commit-hash: d6eead25d0
2020-12-12 17:10:51 -08:00
Dean Lee 0066e93b34 covert rgb_to_yuv.c to rgb_to_yuv.cc (#2757)
old-commit-hash: 3d63b3d414
2020-12-12 16:52:15 -08:00
Adeeb Shihadeh 649fe5b34a fix camerad not exiting cleanly (#2768)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a96857f1aa
2020-12-12 13:55:24 -08:00
Adeeb Shihadeh 3e6abdd8bd oneplus deprecation (#2748)
* oneplus deprecation

* lowercase

* too long

* no udpates
old-commit-hash: 6a151dcd9c
2020-12-12 12:51:12 -08:00
Adeeb Shihadeh 492e9ebd96 Revert "More Rav4 fw"
This reverts commit 93bc2efd3bb4a4e25368b0100ce043f836d7ed8b.

old-commit-hash: 1520dd4c96
2020-12-12 01:20:10 -08:00
Adeeb Shihadeh 412fb8c2f2 more robust fingerprint test
old-commit-hash: dc371f951a
2020-12-12 01:19:38 -08:00
Adeeb Shihadeh d84ede9f00 better debug msg for fw fingerprinting test
old-commit-hash: 1e78469fba
2020-12-12 00:29:14 -08:00
Dean Lee 252b63ba15 transform.h: remove extern "C" (#2755)
old-commit-hash: 0fcfb07f1f
2020-12-12 00:00:07 -08:00
Comma Device 4728ad22b0 add LOGW
old-commit-hash: 44bedaa73b
2020-12-11 21:12:51 -08:00
komma zwei 2fd54d6f1b increase startup timeout for camera malfunction
old-commit-hash: 41bc3c558e
2020-12-11 20:07:27 -08:00
Igor faa4c57ee1 Parametrize stoppingBrakeRate (#2745)
* Parametrize stoppingBrakeRate

* ref_commit updated
old-commit-hash: d3c2a0e6c1
2020-12-11 16:30:35 +01:00
Dean Lee 9be81a6f99 clutil refactor (#2733)
* cleaup clutil.h

* clutil.c -> clutil.cc

* std::hash

* try simplify functions

* using namespace group help functions

* continue

* add function get_platform_info

* continue

* remove caching

* struct CLContext

* std::cout & CL_ERR_TO_STR

* remove CLU_NO_CACHE

* Revert "struct CLContext"

This reverts commit 882e413f22.

* cl_get_error_string : remove undefied error codes

* replace all printf with std::cout

* util::read_file

* cleanup

* revert CL_ERR_TO_STR

* simplify

* add macro CL_ERR_TO_STR

* cl_get_error_string: fix undeclared errors

* log_size should not +1

* use std::stirng log

* apply review
old-commit-hash: 3c08d0f1f7
2020-12-11 13:05:32 +01:00
Willem Melching df97d4db04 Add thumbnails to camera_frame_stream
old-commit-hash: 7b998a7c21
2020-12-11 13:02:45 +01:00
Dean Lee fc07703c8f camerad: fix memory leak in create_thumbnail (#2743)
* fix memory leak in create_thumbnail

* free memory returned from jpeg_mem_dest

* OMG
old-commit-hash: f0d240a7e3
2020-12-11 13:02:16 +01:00
Dean Lee 3f999c44a9 destroy rgb_to_yuv_state (#2702)
old-commit-hash: 1e9e31d6e1
2020-12-10 19:39:46 -08:00
komma zwei d365119d74 rhd dm AE sign flip
old-commit-hash: fef8d4093f
2020-12-10 19:27:45 -08:00
Chris McCammon b40fa4049a More Rav4 fw
* 2021 Rav4 Limited fw from 9363705a7bbefea6
* 2019 Rav4 Hybrid fw from 8b9ff04f758b61ce

old-commit-hash: cb52326790
2020-12-10 16:49:18 -08:00
grekiki 99ee2a9459 WiFI UI show IP (#2735)
WiFi widget now shows the IP of currently connected network. 
old-commit-hash: c16c8f3c2c
2020-12-11 00:29:31 +01:00
grekiki 55bd34e8a5 Dynamically colored alert widget. (#2717)
blue background on update

old-commit-hash: bffdfd5303
2020-12-10 23:39:15 +01:00
grekiki 3bc7286704 Add label if no network manager is found (#2718)
old-commit-hash: f96fb625d9
2020-12-10 19:04:19 +01:00
HaraldSchafer 89b03fa2ee Test model refactor (#2720)
* template funcion fill_meta

* add function get_plan_max_idx

* add function get_mdn_max_idx

* remove temp builder variables

* get_mdn_max_idx->get_lead_data

* get_pan_max_idx->get_plan_data

* fill_lane_line

* combine fill_lane_line&fill_path into one function

* fill_lead_vw

* using unique_ptr

* prefer using constexpr

* more constexpr,remove duplicate defined TRAJECTORY_SIZE

* remove suffix _arr from variable name

* misc

* remove extern c

* refactor model_publish

* remove unused paramaters

* traffic_convention to c style array

* c style array:prev_desire&pulse_desire

* fix error&make easy for review

* const mat3 &transform

* move cl_command_queue into ModelState

* use maco LEAD_MHP_SELECTION

* move constexpr from .h to .cc

* remove #define MODEL_NAME

* modeldata.h: contexpr

* remove param temporal from model_init

* helper function get_best_data

* fix probs

* int

Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: 630c7309a5
2020-12-09 22:48:14 -08:00
Comma Device d5a6427330 make qcom2 robust to moving v4l-subdevs
old-commit-hash: 0e84e04539
2020-12-10 05:44:59 +00:00
ZwX1616 8ab6ec02ad road camera malfunction alert (#2697)
* camera unresponsive

* blue and remove loge

* simplify

* should override to avoid blank screen

* let it be

* stop sound

Co-authored-by: WXEon <device@comma.ai>
old-commit-hash: 257c5f9d94
2020-12-09 20:05:47 -08:00
alancyau 171a30a85f Add fingerprint for 2019 Acura ILX (#2724)
* Add fingerprint for EU 2019 Civic Hatch

* remove fw electricBrakeBooster

* remove extra space

* add 2019 Acura ILX fingerprint

* Add 2019 Acura ILX to README.md
old-commit-hash: 805bf29206
2020-12-09 11:19:21 +01:00
Eric Dardet 26401a7c79 Update Hyundai firmware in values.py for 2021 Sonata (#2714)
* Update Hyundai values.py for 2021 Sonata

Added firmware versions from a 2021 Hyundai Sonata bought in Southern California

* Update selfdrive/car/hyundai/values.py

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

* Update values.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 4373e89e65
2020-12-09 11:13:47 +01:00
Adeeb Shihadeh f562fdb059 add modelV2 to model replay (#2725)
* add modelV2 to model replay

* update refs

* ignore fields for modelv2

* execution time

* fix compare logs

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8992639754
2020-12-08 22:01:34 -08:00
Adeeb Shihadeh 519614d9c0 fix camerad exiting on pc
old-commit-hash: 90d7331312
2020-12-08 20:20:42 -08:00
Mitchell Goff 711d60239a Added model_replay and fixed some bugs in camera_replay (#2679)
* Added model_replay and fixed some bugs in camera_replay

* Unpack capnp logs on device

* add sync to device

* GPU now also works on PC

* update model ref

* update refs

* dont change this one

* Use pipeline calib instead of rlog calib

* remove that

* update refs

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: bbe9accd4d
2020-12-08 19:01:59 -08:00