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
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
cf80675369
Use std::size for element counts ( #20654 )
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
e654d9ddf9
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
4 years ago
ZwX1616
65bb979c34
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>
4 years ago
Adeeb Shihadeh
90795fc773
reduce log spam ( #20330 )
...
* fix big spammers
* my favorite test failure
* remove that one
* went down a bit more
4 years ago
Dean Lee
6e1730a3e8
camera_qcom: better error message for apply exp error ( #20265 )
4 years ago
Dean Lee
74afec9f15
camera_qcom: change unsigned int to uint32_t ( #20262 )
4 years ago
Dean Lee
e66f816879
cameras_qcom: use macros for actuator moving dir ( #20259 )
...
* use macro
* revert change
4 years ago
Dean Lee
e0cc95a565
camera_qcom: remove eeprom related stuff ( #20254 )
4 years ago
Dean Lee
59698344a2
camera_qcom: move opencl stuff into class LapConv ( #20180 )
...
* class RGB2Gray
* rename Rgb2Grey to LapConv
* rebase master
* rebase master
4 years ago
Dean Lee
2f46ddf779
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
4 years ago
Dean Lee
f5109d9207
cameras_qcom: use std::mutex ( #20181 )
4 years ago
Dean Lee
824e4531d7
num_cids should be 1 ( #20190 )
4 years ago
Adeeb Shihadeh
07ab081a42
oneplus cleanup ( #20200 )
...
* start cleanup
* cleanup camerad
* remove unused
* little more
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
e6c47916a2
(msm_sensor_power_setting*) type conversions are not required ( #20191 )
4 years ago
Dean Lee
2f718d28e4
camerad: remove param pix_ptr from set_exposure_target ( #20157 )
4 years ago
Dean Lee
e7906fb446
camerad: rename variables&functions to follow new convention ( #20096 )
...
* rename CameraState variables to follow new convention
* continue
* rename camera_process functions
* qcom:rename exposure related variables
* continue
* update commments
* bool real -> bool is_road_cam
* rename sm_front -> sm
* remove paramater tname from start_process_thread
* rename rhd_front to is_rhd
* remove unused varialble name from struct CameraInfo
* rename env_send_xxx
* rename cap_front to cap_driver,cap_rear to cap_road
* rename xxx_camera_process to process_xxx_camera
* update snapshot.py
4 years ago
Dean Lee
ad88e62a8d
replace sleep with util::sleep_for ( #20108 )
4 years ago
Adeeb Shihadeh
312b681a46
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65eb
.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
4 years ago
Dean Lee
139470f033
camera_qcom: cleanup main() ( #19805 )
...
* cleanup main
* continue
* remove last_t from CameraState
* cleanup
4 years ago
Dean Lee
80799c7272
fill_frame_data: remove unused paramater cnt ( #19936 )
4 years ago
Dean Lee
cbd08d6f0c
cameras_qcom: fix dangling pointer in fill_frame_image ( #19891 )
4 years ago
Dean Lee
ea9835f293
fill_frame_image: reduce function parameters ( #19736 )
...
* reduce function paramaters
* add assert
* Trigger Build
4 years ago
Dean Lee
1b3c93813d
camerad use std::thread ( #19771 )
4 years ago
Dean Lee
660abb79dc
FIX: It is not safe to call cameras_close before all threads are done. ( #19555 )
...
* call cameras_close after all threads exited
* stop buffer before join
* remove buf->stop
4 years ago
Dean Lee
595830135b
merge utilpp.h into util.h ( #19710 )
4 years ago
Dean Lee
cefdca2fd6
create_thumbnail in camera_common ( #19553 )
4 years ago
Dean Lee
621dcf8aa1
cleanup ( #19564 )
4 years ago
Willem Melching
fb496c692a
VisionIPC 2.0 ( #19641 )
...
* Squashed vipc
* Update release files
* Remove else
* add visionipc to release files
* use poller in vipc receive
* opencl framework instead of lib on macos
* Fix camera webcam
* Fix opencl on mac in ui
* more webcam fixes
* typo in ui sconsfile
* Use cur_yuv_buf
* visionbuf c++ class
* Camera qcom was still using visionbuf_allocate
* Turn loggerd back on
* fix snapshot
* No build needed
* update test camerad
* no more release callback
* make encoder c++
* Revert "no more release callback"
This reverts commit e5707b07002fee665d0483d90713154efc2d70d4.
* fix exit handlers
* No need to check errno
* move release callback call
* s/VIPCBufExtra/VisionIpcBufExtra/g
* use non blocking connect
* ui use non blocking connect
* Lower condition variable wait time
* Snapshot cleanup
* bump cereal
* bump cereal
4 years ago
Dean Lee
86fe2d1697
common exit handler ( #19661 )
...
* common signal handle
* fix typo
* rename to ExitHandler
* remove include signal.h
* remove include csignal
* rename variable exit to v
* rebase master
4 years ago
Adeeb Shihadeh
87950eb312
setup clang tidy ( #19533 )
...
* setup clang tidy
* config
* some cleanup
* little more
* remove that
* fix qcom build
4 years ago
Dean Lee
c1cf0882bd
Replace usleep with util::sleep_for ( #19643 )
...
* replace usleep with sleep_for
* sleep microseconds
* sleep nanoseconds
* Trigger Build
4 years ago
Dean Lee
37826c0032
should not break if poll timeout ( #19578 )
4 years ago
Dean Lee
9890f958d9
cameras: use common transform ( #19552 )
5 years ago
Adeeb Shihadeh
c57ee16e86
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>
5 years ago
Dean Lee
d31a87cd21
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
.
5 years ago
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