Dean Lee
147b355dde
add space after function name and if statement ( #21225 )
...
old-commit-hash: e4e669bb0f
4 years ago
Dean Lee
f70a79b838
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
old-commit-hash: c53cb5d570
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
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
7d5a53ccbe
Use std::size for element counts ( #20654 )
...
old-commit-hash: cf80675369
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
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
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
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
Dean Lee
d70fa59acb
cameras_qcom: use std::mutex ( #20181 )
...
old-commit-hash: f5109d9207
4 years ago
Dean Lee
a2f41becf0
num_cids should be 1 ( #20190 )
...
old-commit-hash: 824e4531d7
4 years ago
Adeeb Shihadeh
6dbc7c6d92
oneplus cleanup ( #20200 )
...
* start cleanup
* cleanup camerad
* remove unused
* little more
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 07ab081a42
4 years ago
Dean Lee
ca8207b5c0
(msm_sensor_power_setting*) type conversions are not required ( #20191 )
...
old-commit-hash: e6c47916a2
4 years ago
Dean Lee
0ea334ca6f
camerad: remove param pix_ptr from set_exposure_target ( #20157 )
...
old-commit-hash: 2f718d28e4
4 years ago
Dean Lee
c89e98261b
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
old-commit-hash: e7906fb446
4 years ago
Dean Lee
68c20b1f74
replace sleep with util::sleep_for ( #20108 )
...
old-commit-hash: ad88e62a8d
4 years ago
Adeeb Shihadeh
05eb44115e
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
old-commit-hash: 312b681a46
4 years ago
Dean Lee
29d994027f
camera_qcom: cleanup main() ( #19805 )
...
* cleanup main
* continue
* remove last_t from CameraState
* cleanup
old-commit-hash: 139470f033
4 years ago
Dean Lee
bed2eb58c1
fill_frame_data: remove unused paramater cnt ( #19936 )
...
old-commit-hash: 80799c7272
4 years ago
Dean Lee
bf95f37eba
cameras_qcom: fix dangling pointer in fill_frame_image ( #19891 )
...
old-commit-hash: cbd08d6f0c
4 years ago
Dean Lee
b5d575eb9f
fill_frame_image: reduce function parameters ( #19736 )
...
* reduce function paramaters
* add assert
* Trigger Build
old-commit-hash: ea9835f293
4 years ago
Dean Lee
8b2b835e62
camerad use std::thread ( #19771 )
...
old-commit-hash: 1b3c93813d
4 years ago
Dean Lee
7ea7f097c4
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
old-commit-hash: 660abb79dc
4 years ago
Dean Lee
4c1919f41e
merge utilpp.h into util.h ( #19710 )
...
old-commit-hash: 595830135b
4 years ago
Dean Lee
50da200b5a
create_thumbnail in camera_common ( #19553 )
...
old-commit-hash: cefdca2fd6
4 years ago
Dean Lee
46bd840be6
cleanup ( #19564 )
...
old-commit-hash: 621dcf8aa1
4 years ago
Willem Melching
3f950832b9
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
old-commit-hash: fb496c692a
4 years ago
Dean Lee
5e557ed96d
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
old-commit-hash: 86fe2d1697
4 years ago
Adeeb Shihadeh
d89bb8b29c
setup clang tidy ( #19533 )
...
* setup clang tidy
* config
* some cleanup
* little more
* remove that
* fix qcom build
old-commit-hash: 87950eb312
4 years ago
Dean Lee
bbfb751d69
Replace usleep with util::sleep_for ( #19643 )
...
* replace usleep with sleep_for
* sleep microseconds
* sleep nanoseconds
* Trigger Build
old-commit-hash: c1cf0882bd
4 years ago
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
5 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
5 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
5 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
5 years ago
Dean Lee
890df06246
refactor imgproc/utils ( #2766 )
...
* refactor imgproc/utils
* const
* space
* return value
old-commit-hash: 554ea8f54a
5 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
5 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