Dean Lee
3fa5602f75
should not break if poll timeout ( #19578 )
...
old-commit-hash: 37826c0032
4 years ago
Dean Lee
824106eab4
cameras: use common transform ( #19552 )
...
old-commit-hash: 9890f958d9
4 years ago
Adeeb Shihadeh
762eda95cd
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>
old-commit-hash: c57ee16e86
4 years ago
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
4 years ago
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
4 years ago
Dean Lee
890df06246
refactor imgproc/utils ( #2766 )
...
* refactor imgproc/utils
* const
* space
* return value
old-commit-hash: 554ea8f54a
4 years ago
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
4 years ago
Dean Lee
df9e0b2cb4
simplify building capnp messages with arrays ( #2617 )
...
old-commit-hash: bd4f6650fa
5 years ago
Dean Lee
57138a6e0f
Error checking macros for opencl ( #2615 )
...
* macro CL_CHECK&CL_CHECK_ERR
* trigger checks
old-commit-hash: 42183d913f
5 years ago
ZwX1616
7af71098b6
send frame in packet on demand ( #2567 )
...
* focus lens helper2
* fix
* yes screen
* s
* new/del
* once
* cleanup
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c630cd44da
5 years ago
ZwX1616
ba4c06a566
use different SubMasters for driverState/sensorEvents ( #2522 )
...
* use different sms
* rename
old-commit-hash: 4954db0381
5 years ago
George Hotz
c5313f6bcf
Focus Actuator Comments ( #2478 )
...
* comments from DW9800W datasheet
* more comments
old-commit-hash: 4d5efb5789
5 years ago
ZwX1616
8cc8e041c9
just use the same ( #2419 )
...
old-commit-hash: b5617c17c8
5 years ago
Willem Melching
651d4ce031
--std=c++17 ( #2330 )
...
* switch to c++17
* more 17
* 1z
* use std::clamp
* Fix types in clamp
* bump submodules
* bump laika
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 339d1967cb
5 years ago
ZwX1616
dae628002f
Clean up and test camerad refactor ( #2310 )
...
* refactor
add function get_camerabuf_by_type
remove cl_free
use camera_id
move front stuff into frontview_thread
bigger refactor
more
typo
rename camerabuf *c to *b
cleanup header files
remove wideview_thread
camera_qcom.c to c++
fix SConscript
camera_process_buf
space
sendrgb same with before
do autoexposure in processing_thread
correct sendrgb
add camera_common.cc
move yuv_transform to CameraBuf
* use C to keep consitent
* rebase master
* rebase master
* continue refactor
* refactor all camera related data&function out of main
done
* cleanup
* -use buf.rgb_width&height
* remoe ,
* rebase master
* remove unused std::vector
* add func common_camera_process_front
* fix max
* fix sendrgb
* less crap being logged
* fix indents
* add back thumbnails
* thumbnail fixed on tici
* junk junk junk
* unify api
* fix ptr ref
* lol!
* cleanup
* more simplified
* typos
* remove terminate
* use standard polling
* ops_thread refactor, too much code!
* fix build
* ok
* assert
* listen
* incl more
* wq!
* fix more build
* macos
* fix exp targets
* front is different
* const
* bye
* remath
* remove irrelevant
* do ops in a thread
* fix init
* return null
* QCOM2 ops
* qcom2 build
* missing comma
Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6b020241c9
5 years ago
ZwX1616
fa54bf9be4
Fix dcamera inaccurate fps on OP3T and LP3 ( #2305 )
...
* fix op3t pclk
* fix leeco fps
old-commit-hash: 84e83e88a3
5 years ago
Dean Lee
f57c4d3052
camerad: close file descriptors ( #2065 )
...
* close file descriptors
* fix struct indent
* add some new lines
old-commit-hash: 9f34d1ff66
5 years ago
robbederks
7671d18467
Tici camerad ( #2048 )
...
* fix camera config
* typos
* oops
* more typo
* lambless
* forget to send
* visualize hist
* more typo
* 0xC000
* simple
* data loss prevention, clean up later
* loggerd
* back up code
* backup
* fixed memory leak
* fix vsync
* upload ecam
* WB
* 3stream
* fix OMX crash on loggerd rotation
* rewritten debayer kernel
* update viewer
* improved AE
* no artifact lines/grids
* standard trigger
* cleanups
* CCM
* cleanups
* slight tweak
* upd push sock
* build all these
* update tele fl
* update cereal
* upd viewer
* DualCameraState -> MultiCameraState
* cameras_open
* disable frame zmq push by default
* more cleanup
* no apks
* fix submodule error
* wat
* clean up trash
* remove junk
* only build on qcom2
* no need to check these
* update cereal
* some more minor cleanup
* bump panda
* add todo
* minor typo
* Revert "minor typo"
This reverts commit 9233a1df7c
.
* not care
* use consistent hdr
* some cleanup
* Update selfdrive/camerad/main.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* more cleanups
* remove irrelevant stuff
* this too
* cleanup
* rerun ci
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
Co-authored-by: Tici <robbe@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 37d6472bfa
5 years ago
Dean Lee
a81c4ebd79
camerad: protect concurrent access to shared variables and avoid race conditions ( #1966 )
...
* Protect concurrent access for shared resources
* fix
old-commit-hash: f3fb406eee
5 years ago
Dean Lee
066398a49a
camerad: close ops_sock in camera_close ( #1998 )
...
old-commit-hash: 55ece6991e
5 years ago
Adeeb Shihadeh
cdfb090c7a
Wunused ( #1841 )
...
* enable Wunused, first pass
* unused stuff in snpe model
* these are used on phone
* handle sigint and sigterm in modeld
* fix phone build
* camera qcom
* QCOM build works
* delete unused camerad vars
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: eb1aa3d831
5 years ago
ZwX1616
b7643a0c40
Reduce C2 dcamera noise at night ( #1798 )
...
old-commit-hash: 1036c68251
5 years ago
ZwX1616
b954e6e93d
camerad: don't crash zmq if get interrupt from msgq ( #1790 )
...
* not crash zmq if get interrupt from msgq
* also filter eagain
old-commit-hash: 55aee68ca0
5 years ago
ZwX1616
9bca4bfb20
recover EON/C2 AF ( #1665 )
...
old-commit-hash: 3aa99a01d7
5 years ago
Dean Lee
0b0674ef20
camerad: move c-capnp to c++ ( #1472 )
...
* convert c-capnp to c++
change paramater type
* remove c-capnp header from commonmodel.c
* unsigned short -> uint16_t
* MSM_CAMERA_I2C_ADDR_TYPE_MAX->4
old-commit-hash: b6d6f52032
5 years ago
ZwX1616
aada0e9a66
bad AF state logging ( #1365 )
...
old-commit-hash: 968e2585cc
5 years ago
Willem Melching
897d9ff1e2
camerad zmq_poll, also recover from EAGAIN
...
old-commit-hash: e69e0486ff
5 years ago
Willem Melching
9fd08dd1e2
No logging on EINTR, and log all the errnos
...
old-commit-hash: a4c94128c2
5 years ago
Willem Melching
f260ab4d94
Add logging to poll EINTR handling, add another catch in camerad/main.cc
...
old-commit-hash: 439b4625b6
5 years ago
Willem Melching
4b1c53993a
Camerad add errno logging, and continue on EINTR
...
old-commit-hash: 7669a783d6
5 years ago
ZwX1616
12495a4ee0
revert AF for master ( #1159 )
...
old-commit-hash: 9563f77302
5 years ago
ZwX1616
a4a938c100
AF: improve general responsiveness ( #1137 )
...
* sync control with readout; always assume worst
* faster recover
old-commit-hash: 435a36cdff
5 years ago
ZwX1616
274edbb8a4
no random factors
...
old-commit-hash: bba7fbb490
5 years ago
ZwX1616
16c216ee69
AF only trust high confidence & high coverage
...
old-commit-hash: 57b2864370
5 years ago
ZwX1616
c648937cba
fix not focusing when all readings broken ( #1072 )
...
old-commit-hash: 08042ab649
5 years ago
ZwX1616
0976cd1825
Focusss ( #1059 )
...
old-commit-hash: 2b97ff70b5
5 years ago
George Hotz
78d3dfe8ae
selfdrive/camerad
...
old-commit-hash: 84560ccd55
5 years ago
George Hotz
81dd5a50cf
root commit
...
old-commit-hash: 6c33a5c1f3
5 years ago
Vehicle Researcher
99b637c7ce
openpilot v0.7 release
...
old-commit-hash: c025b96e8a
5 years ago
Vehicle Researcher
89d1d84c70
openpilot v0.6.5 release
...
old-commit-hash: cf80f7a28b
6 years ago
Vehicle Researcher
9abcfabc5f
openpilot v0.6 release
...
old-commit-hash: 8a9ed94f5f
6 years ago
Vehicle Researcher
e47a2e6e30
openpilot v0.5.13 release
...
old-commit-hash: dd34ccfe28
6 years ago
Vehicle Researcher
0932b367bd
openpilot v0.5.12 release
...
old-commit-hash: 3f9059fea8
6 years ago
Vehicle Researcher
3bde47d556
openpilot v0.5.8 release
...
old-commit-hash: b967da5fc1
6 years ago