Dean Lee
fefc70b4ca
hw.h: move Hardware-related paths to namespace Path ( #21826 )
...
* refactor getenv and path
* apply review
4 years ago
Adeeb Shihadeh
4c0caf7f7e
100 yuv buffers for all
4 years ago
Willem Melching
b6b0393e2d
Revert AE changes ( #21682 )
...
* Revert AE changes
* keep YUV buffer count
4 years ago
Willem Melching
b35f6871cb
AE: revert changes to min grey target ( #21648 )
4 years ago
Willem Melching
0d9e7ad241
only 100 yuv buffers on C2 ( #21622 )
4 years ago
Willem Melching
3ad40963cc
tici: AE sane default values ( #21610 )
...
* tici: AE sane default values
* set exposure time
* remove comment
* set dc gain variable
* whitespace
4 years ago
Willem Melching
63c9b56063
tici: improve AE ( #21493 )
...
* simplify histogram calculation
* add debug prints
* faster AE
* revert that
* lower log level
* use minimum recomended gains from datasheet
* use define
* fix min gain
* dynamic grey target
* fix build
* add low pass
* more stable rounding
* increase max gain
* always enable HCG
* correctly set min ev
* fix analog gain
* remove unused variable
* fix build
* move recomended gain into cost function
* tweak cost function a bit
* small LPF on desired ev
* fix typo
* lower ts
* clean up defines
* that was used in common
* add cast
* less cost is fine
* fix tests
* whitespace
* filtering is broken
* put back
* clip gain changes instead
* cost function tweaking
* Only go below recomended gain when absolutely necessary
* small penalty on changing gains
4 years ago
Adeeb Shihadeh
4738fe0e45
increase yuv buffer count to hold 5s ( #21528 )
...
* increase yuv buffer count to hold 5s
* bump cereal
4 years ago
Willem Melching
47be6c751e
Refactor camerad exposure logging ( #21506 )
...
* simplify gain logging
* clean up metadata
* log grey fractions
* those are not used
* set grey fracs in message
* fix qcom
4 years ago
Willem Melching
8d075048b3
tici: Switch to 1D dead pixel correction ( #21467 )
4 years ago
Dean Lee
73d741b7be
fix webcam crash when failed to read video frame ( #21272 )
4 years ago
Dean Lee
e4e669bb0f
add space after function name and if statement ( #21225 )
4 years ago
Maxime Desroches
03df1b08bb
Convert C++ while loops from int to bool ( #21214 )
4 years ago
Adeeb Shihadeh
9e94fb17cf
fix qcom and qcom2 builds
4 years ago
Dean Lee
c53cb5d570
Use C++ header files instead of C header files. ( #21192 )
...
* use cstring instead of string.h
* use cstdio instead of stdio.h
* remove inttypes.h
* use cstdlib instead of stdlib.h
* use cstdint instead of stdint.h
* #include <cstddef>
* cstdlib
* use cmath
* remove stddef.h
* use cassert
* use csignal
* use ctime
* use cerror
* rebase master
4 years ago
Dean Lee
b06b3ecb60
Use full include path ( #21194 )
4 years ago
Dean Lee
65e0b1e699
Cleanup util.h ( #20849 )
...
* cleanup util.h
* fix build error:omx_encoder.cc:408: undefined reference to do_exit
* fix build error
* rebase master
* move helper functions back to util
* ExitHandleHelper->ExitHandlerHelper
* std::clamp
* struct ExitHandlerHelper to class
* rebase master
* cleanup
* restore ExitHandler
* prefer cassert
4 years ago
Adeeb Shihadeh
cf6d133638
fix up model tests + tools ( #21071 )
...
* unlogger: send yuv stream
* fix up model test tools
* fix unlogger
* rename model replay
* bump cereal
* test in actions
* no ci for now
4 years ago
Adeeb Shihadeh
8fdbbdef73
remove oneplus camera params ( #21047 )
...
* remove oneplus camera params
* align
4 years ago
ShaneSmiskol
a457144357
Improve focus when using snapshot ( #21031 )
4 years ago
George Hotz
f43671c987
Move MCLK from 24 -> 19.2 mhz + Add accuracy in sidebar ( #20960 )
...
* wip
* one day i'll flip that right
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
0495426535
Cleanup includes ( #20925 )
...
* remove #include <pthread.h>
* remove #include<stdbool.h> for cc files
* remove #include<iostream>
4 years ago
Dean Lee
7222d0f20d
Cleanup selfdrive/ includes ( #20822 )
...
* cleanup include path
* continue
* format includes
* fix testraw.cc
* remove include path from SConstruct
* regroup
* rebase master
* almost done
* apply review
* rename FileReader.xx to filereader.xx
* rename Unlogger.x->unlogger.x
* rename FrameReader.xx -> framereader.xx
* apply reviews
* ui.h
* continue
* fix framebuffer.cc build error:mv util.h up
* full path to msm_media_info
* fix qcom2 camerad
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Willem Melching
ab319d4f54
Replace ifdef with hw abstraction layer ( #20843 )
...
* Replace ifdefs with hardware abstraction layer (#20801 )
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
* Fixes after ifdef clenaup (#20842 )
* inheritance doesnt work with static
* fix debayer
* small cleanup
* Update selfdrive/camerad/cameras/camera_common.cc
* Update selfdrive/ui/qt/offroad/settings.cc
* Update selfdrive/common/modeldata.h
* flip conditions
* fix comment
Co-authored-by: Dean Lee <deanlee3@gmail.com>
4 years ago
Willem Melching
3a95d3ccaa
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 757d2923d2
.
4 years ago
Dean Lee
757d2923d2
Replace ifdefs with hardware abstraction layer ( #20801 )
...
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
4 years ago
Adeeb Shihadeh
8a280fbb8e
bump cereal
4 years ago
iejMac
4866a39244
cereal: SubMaster refactor, update is now void ( #20730 )
...
* cereal: SubMaster refactor, update is now void
* bump cereal
* mistake
* update void
* checks
* semicolon
* Update selfdrive/camerad/cameras/camera_frame_stream.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* check sensorEvent
* update cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Dean Lee
f0a1a6e4d6
camerad: SubMaster never updated ( #20651 )
...
* fix sm has not been updated
* update submaster in processing driver cam thread
* move Subbmaster to driver camera thread
* cleanup
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
5a3c22d804
camerad: refactor RGBToYUVState into a class ( #20310 )
...
* struct RGBToYUVState to class Rgb2Yuv
* clFinish
* blank line
* rebase master
* use event
4 years ago
Dean Lee
cf80675369
Use std::size for element counts ( #20654 )
4 years ago
Adeeb Shihadeh
4e03e37381
Revert "CameraBuf: avoid busy waiting on safe_queue ( #20643 )"
...
This reverts commit e562a69a4d
.
4 years ago
Dean Lee
e562a69a4d
CameraBuf: avoid busy waiting on safe_queue ( #20643 )
...
* 20ms timeout
* Update camera_common.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Willem Melching
ae094042ad
add putBool/getBool wrappers to cython params class ( #20611 )
...
* add putBool/getBool wrappers to cython class
* use new API
* some more puts
* fix mockparams arguments
* add get_bool to MockParams
* typo
4 years ago
Willem Melching
dfedf9d0de
snapshot.py only broadcast front frame when necessary ( #20612 )
...
* snapshot.py only broadcast front frame when necessary
* whitespace
4 years ago
Dean Lee
d40891739f
refactor webcam, use common run_camera function ( #20555 )
...
* run camera in common function run_camera
continue
remove relase
clEnqueueReadBuffer
cleanup
blank line
remove cideo_cap.release
con tinue
* get camera id from env
* assert
4 years ago
Dean Lee
9b9bdd3da5
Added function power_set_wait, fix munmap invalid pointer error. ( #20189 )
...
* added function power_set_wait_cmd
* cleanup
* rename power_set_wait_cmd to power_set_wait
* rename delay to delay_ms
4 years ago
Dean Lee
26fa6e1644
camerad_qcom: init sensors with array ( #20275 )
...
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
4 years ago
Dean Lee
540b853c9f
init frame_length in camera_init ( #20261 )
4 years ago
Dean Lee
dd54c18bb7
camera_qcom: added new function cam_ioctl ( #20184 )
...
* added new function cam_ioctl
* static
4 years ago
Dean Lee
4e68bab6f6
refactor set_driver_exposure_target ( #20327 )
...
* driver_cam_set_exp_target
* rebase master
* rebase master
* rename to driver_cam_auto_exposure
4 years ago
Dean Lee
5e6e9df407
camera_qcom2: move the common file descriptors to MultiCameraState ( #20182 )
...
* move the common file descriptors to MultiCameraState
* use unique_fd for file descriptors
* done
* fix build
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
4 years ago
Dean Lee
98e55996f6
Params: python-like interface ( #20506 )
...
* rebase master
* delete outdated test_params.c
* putBool & more robust getBool
* putBool(SshEnabled)
4 years ago
ZwX1616
97133a8fac
camerad jenkins box test ( #20413 )
...
* separate test
* send
* update test
* snapshot is rgb
* this does not belong here
* clean up
* tici
* no if
* no black frames
* flaky leds
* rename and cleanup
* should be stable and avoid lucky pass
* print
* logical and
* run in jenkins
* source profile on tici
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
ZwX1616
3f221bd5ab
update line length ( #20391 )
...
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
dd4fa036e9
CameraBuf: remove class variable yuv_metas ( #20376 )
4 years ago
Dean Lee
9df3bab96a
CameraBuf::acquire: remove reference frame_data, use cur_frame_data to keep consistency ( #20361 )
4 years ago
Dean Lee
3e663529bd
cameras:move cameras_supported to the top ( #20370 )
...
* move cameras_supported to the top
* remove extern CameraInfo cameras_supported from camera_common.h
4 years ago
Dean Lee
ecfb9d88d0
camera_frame_stream.h: remove unused variables ( #20340 )
4 years ago
Dean Lee
4c225c6e1d
camera_qcom2: add std::mutex exp_lock ( #20183 )
...
* add std::mutex exp_lock
* auto &meta_data
4 years ago