Dean Lee
c1f3c3b2df
camera_qcom: read SensorEvents in op thread ( #2764 )
...
* get acceleration in op thread
* std::atomic last_sag_acc_z
* cleanup
5 years ago
Dean Lee
554ea8f54a
refactor imgproc/utils ( #2766 )
...
* refactor imgproc/utils
* const
* space
* return value
5 years ago
Dean Lee
3c08d0f1f7
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
5 years ago
Dean Lee
bd4f6650fa
simplify building capnp messages with arrays ( #2617 )
5 years ago
Dean Lee
42183d913f
Error checking macros for opencl ( #2615 )
...
* macro CL_CHECK&CL_CHECK_ERR
* trigger checks
5 years ago
ZwX1616
c630cd44da
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>
5 years ago
ZwX1616
4954db0381
use different SubMasters for driverState/sensorEvents ( #2522 )
...
* use different sms
* rename
5 years ago
George Hotz
4d5efb5789
Focus Actuator Comments ( #2478 )
...
* comments from DW9800W datasheet
* more comments
5 years ago
ZwX1616
b5617c17c8
just use the same ( #2419 )
5 years ago
Willem Melching
339d1967cb
--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>
5 years ago
ZwX1616
6b020241c9
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>
5 years ago
ZwX1616
84e83e88a3
Fix dcamera inaccurate fps on OP3T and LP3 ( #2305 )
...
* fix op3t pclk
* fix leeco fps
5 years ago
Dean Lee
9f34d1ff66
camerad: close file descriptors ( #2065 )
...
* close file descriptors
* fix struct indent
* add some new lines
5 years ago
robbederks
37d6472bfa
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>
5 years ago
Dean Lee
f3fb406eee
camerad: protect concurrent access to shared variables and avoid race conditions ( #1966 )
...
* Protect concurrent access for shared resources
* fix
5 years ago
Dean Lee
55ece6991e
camerad: close ops_sock in camera_close ( #1998 )
5 years ago
Adeeb Shihadeh
eb1aa3d831
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>
5 years ago
ZwX1616
1036c68251
Reduce C2 dcamera noise at night ( #1798 )
5 years ago
ZwX1616
55aee68ca0
camerad: don't crash zmq if get interrupt from msgq ( #1790 )
...
* not crash zmq if get interrupt from msgq
* also filter eagain
5 years ago
ZwX1616
3aa99a01d7
recover EON/C2 AF ( #1665 )
5 years ago
Dean Lee
b6d6f52032
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
5 years ago
ZwX1616
968e2585cc
bad AF state logging ( #1365 )
5 years ago
Willem Melching
e69e0486ff
camerad zmq_poll, also recover from EAGAIN
5 years ago
Willem Melching
a4c94128c2
No logging on EINTR, and log all the errnos
5 years ago
Willem Melching
439b4625b6
Add logging to poll EINTR handling, add another catch in camerad/main.cc
5 years ago
Willem Melching
7669a783d6
Camerad add errno logging, and continue on EINTR
5 years ago
ZwX1616
9563f77302
revert AF for master ( #1159 )
6 years ago
ZwX1616
435a36cdff
AF: improve general responsiveness ( #1137 )
...
* sync control with readout; always assume worst
* faster recover
6 years ago
ZwX1616
bba7fbb490
no random factors
6 years ago
ZwX1616
57b2864370
AF only trust high confidence & high coverage
6 years ago
ZwX1616
08042ab649
fix not focusing when all readings broken ( #1072 )
6 years ago
ZwX1616
2b97ff70b5
Focusss ( #1059 )
6 years ago
George Hotz
84560ccd55
selfdrive/camerad
6 years ago