George Hotz
6922150ede
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>
old-commit-hash: f43671c987
4 years ago
Dean Lee
5609f32cee
Cleanup includes ( #20925 )
...
* remove #include <pthread.h>
* remove #include<stdbool.h> for cc files
* remove #include<iostream>
old-commit-hash: 0495426535
4 years ago
Dean Lee
e333e4f189
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>
old-commit-hash: 7222d0f20d
4 years ago
Willem Melching
78bf4f5867
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>
old-commit-hash: ab319d4f54
4 years ago
Willem Melching
39c18d4c5a
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 9f2ad462f39f4c880f283b71bffbc9248a2b577d.
old-commit-hash: 3a95d3ccaa
4 years ago
Dean Lee
e0282ced49
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
old-commit-hash: 757d2923d2
4 years ago
Adeeb Shihadeh
532d19427c
bump cereal
...
old-commit-hash: 8a280fbb8e
4 years ago
iejMac
4abd8988e4
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>
old-commit-hash: 4866a39244
4 years ago
Dean Lee
2db11515bd
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>
old-commit-hash: f0a1a6e4d6
4 years ago
Dean Lee
3339cc01a6
camerad: refactor RGBToYUVState into a class ( #20310 )
...
* struct RGBToYUVState to class Rgb2Yuv
* clFinish
* blank line
* rebase master
* use event
old-commit-hash: 5a3c22d804
4 years ago
Dean Lee
7d5a53ccbe
Use std::size for element counts ( #20654 )
...
old-commit-hash: cf80675369
4 years ago
Adeeb Shihadeh
d339348895
Revert "CameraBuf: avoid busy waiting on safe_queue ( #20643 )"
...
This reverts commit e7db6f827d41b8c75579ccbfc2db20f93bd3f6c0.
old-commit-hash: 4e03e37381
4 years ago
Dean Lee
56d306c03b
CameraBuf: avoid busy waiting on safe_queue ( #20643 )
...
* 20ms timeout
* Update camera_common.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e562a69a4d
4 years ago
Willem Melching
8f4a445171
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
old-commit-hash: ae094042ad
4 years ago
Willem Melching
932df57c38
snapshot.py only broadcast front frame when necessary ( #20612 )
...
* snapshot.py only broadcast front frame when necessary
* whitespace
old-commit-hash: dfedf9d0de
4 years ago
Dean Lee
fa799ef42c
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
old-commit-hash: d40891739f
4 years ago
Dean Lee
42b4cb6c29
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
old-commit-hash: 9b9bdd3da5
4 years ago
Dean Lee
cc749a73fc
camerad_qcom: init sensors with array ( #20275 )
...
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
old-commit-hash: 26fa6e1644
4 years ago
Dean Lee
18a8424e92
init frame_length in camera_init ( #20261 )
...
old-commit-hash: 540b853c9f
4 years ago
Dean Lee
9d1af2f91e
camera_qcom: added new function cam_ioctl ( #20184 )
...
* added new function cam_ioctl
* static
old-commit-hash: dd54c18bb7
4 years ago
Dean Lee
2a535eed7e
refactor set_driver_exposure_target ( #20327 )
...
* driver_cam_set_exp_target
* rebase master
* rebase master
* rename to driver_cam_auto_exposure
old-commit-hash: 4e68bab6f6
4 years ago
Dean Lee
f8e04b7cf1
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>
old-commit-hash: 5e6e9df407
4 years ago
Dean Lee
405df8b165
Params: python-like interface ( #20506 )
...
* rebase master
* delete outdated test_params.c
* putBool & more robust getBool
* putBool(SshEnabled)
old-commit-hash: 98e55996f6
4 years ago
ZwX1616
40b1877c04
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>
old-commit-hash: 97133a8fac
4 years ago
ZwX1616
57ed33ca52
update line length ( #20391 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 3f221bd5ab
4 years ago
Dean Lee
d4986abd9b
CameraBuf: remove class variable yuv_metas ( #20376 )
...
old-commit-hash: dd4fa036e9
4 years ago
Dean Lee
b8925e456a
CameraBuf::acquire: remove reference frame_data, use cur_frame_data to keep consistency ( #20361 )
...
old-commit-hash: 9df3bab96a
4 years ago
Dean Lee
6e820c414b
cameras:move cameras_supported to the top ( #20370 )
...
* move cameras_supported to the top
* remove extern CameraInfo cameras_supported from camera_common.h
old-commit-hash: 3e663529bd
4 years ago
Dean Lee
9ef68f2d96
camera_frame_stream.h: remove unused variables ( #20340 )
...
old-commit-hash: ecfb9d88d0
4 years ago
Dean Lee
8b0b3074bb
camera_qcom2: add std::mutex exp_lock ( #20183 )
...
* add std::mutex exp_lock
* auto &meta_data
old-commit-hash: 4c225c6e1d
4 years ago
Dean Lee
bea33f843e
cleanup camera_qcom const structs ( #20251 )
...
* move actuator_ringing_params from global to function actuator_move
* remove varaible infinity_dac from CameraState
* static actuator_ringing_params
* continue
* rebase master
old-commit-hash: e654d9ddf9
4 years ago
ZwX1616
d8c1e9a16e
set_exposure_target test ( #20318 )
...
* build
* remove junk
* clean up
* clean up rebase
* new patterns
* add gts
* add to jenkis
* this more useful
* typo
* test only
* Update Jenkinsfile
* test flag
* remove from jenkins
* these should all just be common:wq
* oops
* unigt
* add to unit tests?
* build all is fine
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 65bb979c34
4 years ago
Adeeb Shihadeh
3d04c4060b
reduce log spam ( #20330 )
...
* fix big spammers
* my favorite test failure
* remove that one
* went down a bit more
old-commit-hash: 90795fc773
4 years ago
Dean Lee
a61b248ba7
refactor function alloc ( #20192 )
...
old-commit-hash: 92e69e8b75
4 years ago
Dean Lee
4dc07fe68c
use loop index ( #20307 )
...
old-commit-hash: 8a966de2b6
4 years ago
ZwX1616
6e79d0d5dd
only destroy if inited ( #20317 )
...
old-commit-hash: b734647fb7
4 years ago
Dean Lee
1fab84cd46
LapConv::Update: use CL_TRUE instead of true ( #20311 )
...
old-commit-hash: 8abc85ea5e
4 years ago
Comma Device
9360cf6509
revert to divide first
...
old-commit-hash: bcbcc03dc7
4 years ago
Dean Lee
55cfd38489
camera_qcom: better error message for apply exp error ( #20265 )
...
old-commit-hash: 6e1730a3e8
4 years ago
Dean Lee
5582f01a23
camera_qcom: change unsigned int to uint32_t ( #20262 )
...
old-commit-hash: 74afec9f15
4 years ago
Dean Lee
927d34ec43
cameras_qcom: use macros for actuator moving dir ( #20259 )
...
* use macro
* revert change
old-commit-hash: e66f816879
4 years ago
Dean Lee
57f0f9a7ab
camera_qcom: remove eeprom related stuff ( #20254 )
...
old-commit-hash: e0cc95a565
4 years ago
Dean Lee
bca42582d9
modeldata.h: new function get_model_yuv_transform ( #20257 )
...
old-commit-hash: 80cc0eefc9
4 years ago
Dean Lee
213d9255f2
camera_qcom: move opencl stuff into class LapConv ( #20180 )
...
* class RGB2Gray
* rename Rgb2Grey to LapConv
* rebase master
* rebase master
old-commit-hash: 59698344a2
4 years ago
Dean Lee
a13c21c7a7
oneplus cleanup (continue) ( #20212 )
...
* cleanup cameras_supported
* use macro
* remove ois_fd
* remove ois_init_settings
* cleanup sensor_i2c.h
* apply_exposure
* better comment
* remove int err
* init apply_exposure in camera_init
* continue
* remove event startupOneplus
* Revert "remove event startupOneplus"
This reverts commit f5b16e864399bcf4dc7c48fc07a43e35c47e7dc2.
* move camera_init after xxx_apply_exposure
old-commit-hash: 2f46ddf779
4 years ago
Comma Device
f68201e717
better transition
...
old-commit-hash: 0d036de205
4 years ago
Dean Lee
9faffa817b
camerad: fix thumbnail cnt ( #20236 )
...
old-commit-hash: d3a71dcf65
4 years ago
ZwX1616
a899ac0de6
clean up tici camera registers ( #20209 )
...
* clean up registers
* clean up more
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ab87aa1da8
4 years ago
Comma Device
633687e43a
force same gamma
...
old-commit-hash: a5e9c603bd
4 years ago
Dean Lee
d70fa59acb
cameras_qcom: use std::mutex ( #20181 )
...
old-commit-hash: f5109d9207
4 years ago