Joost Wooning
8f9ba7540b
debayering: fix divide for reading 12 bit values ( #24546 )
3 years ago
Willem Melching
1dcd5096ba
camerad: sanity check register data before parsing ( #24547 )
3 years ago
Adeeb Shihadeh
6a48a7acef
more comma two cleanup ( #24300 )
...
* more comma two cleanup
* fix up power monitoring
3 years ago
Adeeb Shihadeh
ab75c53792
replay: cleanup unused RGB buffers ( #24537 )
...
* replay: cleanup unused RGB buffers
* update replay cam
* little more
3 years ago
Joost Wooning
489fbb74b0
camerad: combine debayering and rgb_to_yuv opencl kernels ( #24452 )
...
* camerad: combine debayering and rgb_to_yuv opencl kernels
* fix border
* fix snapshot
* rename function
* update camerad cpu usage
* update camerad power draw
* vignetting equal to previously
* test other local worksize
* use less floats
* reduce amount of code
* move barrier back
* make faster
* fix corners
* cleanup
* cleanup
* allow more jitter on driverState timing
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Joost Wooning
40ae0b8604
debayering: code cleanup ( #24507 )
...
* debayering: code cleanup
* some more cleanup
3 years ago
George Hotz
01ab99d416
simplify and fix clamp ( #24479 )
...
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
ZwX1616
4354f7cd28
clean up gamma variable names ( #24476 )
3 years ago
Joost Wooning
49e10dc773
debayering: fill outer image borders ( #24441 )
...
* debayering: fill outer image borders
* correct conditions
* try something else
* remove global check
* update ref
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Willem Melching
95fa6b1df8
camerad: get embedded statistics and data by embedding in pixel data ( #24353 )
...
* camerad: AR0231 read embedded data and statistics
* reorder
* remove unrelated camera config
3 years ago
Joost Wooning
d8c0cf5d55
debayering: typedef half as float to run on pc ( #24439 )
...
* debayering: typedef half as float to run on pc
* add casts to literals
* define existing half type
* remove test code
3 years ago
Joost Wooning
1f9907122a
make debayering consistent at edges ( #24437 )
3 years ago
Joost Wooning
05f606c812
camerad: allow to log raw camera frames ( #24393 )
...
* camerad: log raw camera frames with env var
* dont qlog
* cleaner
* only road camera
* use vision buf len
* use static counter to handle frame skips
* we already have cnt
Co-authored-by: Willem Melching <willem.melching@gmail.com>
3 years ago
Willem Melching
6e0c25d654
camerad: cleanup DM exposure and move into camera_qcom2.cc ( #24391 )
...
* camerad: cleanup DM exposure and move into camera_qcom2.cc
* remove include
3 years ago
George Hotz
b7ddce8bac
camerad: less ioctls try 2 ( #24371 )
...
* premap the buffers
* memory manager
* free buffers properly, alignment seems okay
* update camerad CPU usage
* cam_sync_fd
* useless line, and use the define
* cheap prereqs for multistream
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
George Hotz
5ddd2000b2
Revert "camerad: don't remap everything every time ( #24334 )" ( #24370 )
...
This reverts commit fb7d84875b
.
3 years ago
George Hotz
fb7d84875b
camerad: don't remap everything every time ( #24334 )
...
* premap the buffers
* memory manager
* free buffers properly, alignment seems okay
* update camerad CPU usage
* cam_sync_fd
* useless line, and use the define
* cheap prereqs for multistream
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Lukas Petersson
397bd25e97
Disambiguate frame id in latencylogger ( #24164 )
...
* add tools to disambiguate frame id
* Update selfdrive/camerad/cameras/camera_qcom2.cc
Co-authored-by: Gijs Koning <gijs-koning@live.nl>
* bug fix
* remove duplicate code
* PR comments
* bug fix
Co-authored-by: Gijs Koning <gijs-koning@live.nl>
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
George Hotz
1795a2ac03
C2: remove some dead code ( #24256 )
...
* remove some dead code
* still needed
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Adeeb Shihadeh
5c48e7bc86
remove comma two support ( #24248 )
...
* remove comma two support
* cleanup release files
* little more
* more libs
* no more gralloc
* add snpe back
3 years ago
George Hotz
10d4766f76
camerad: cleanups, support running only one camera ( #24157 )
...
* support disabling the cameras
* disable instead of only. reduce camera startup time
* cleanups
* make all disables work
* add more logging to buffer creation
* make disable work
* disable on sensor probe failed
* tested, fix print
* tolerate sensor failure onroad
* enables should be honored in public methods only
* comments and whitespace
* debug starting sensor
* bring clear_req_queue into c++, add logging for error cases
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Willem Melching
03257bb0d8
camera processing time: float -> double
3 years ago
Lukas Petersson
65fca83abe
Latency logging 2 ( #24058 )
...
* msg_order and gantt
* frameId in long/lat planner
* track frame id
* controls frame id
* graph tracked events
* graph json
* cloudlog timestamp
* c++ cloudlog
* add frame id
* bug fixes
* bug fixes
* frame id visionicp
* bug fixes and debug level
* timestamp log placement
* print timestamps in table
* translate events
* more logging
* bug fixes
* daemon boardd
* print logs with boardd
* more timestamp logs
* cleanup
* remove publish logs
* bug fix
* timestamp received
* timestamp received
* bug fixes
* use json lib
* ignore driver camera
* prep for new timestamp pipeline
* bug fix
* read new pipeline unfinnished
* read new pipeline
* bug fix
* add frame to controlsstate
* remove controlsstate
* print
* cleanup
* more cleanup + bug fix
* clock build issue
* remove unused imports
* format durations
* increase speed
* pr comments fixes
* conflicts
* set MANAGER_DAEMON for boardd
* clean script code
* bug fix + argparse
* remove rcv time
* bug fixes
* print without tabulate
* fix pre-commits
* plot gnatt
* color bug fix
* read without timestampextra
* bump panda
* mono time instead of frame id
* finnish script
* clean unused
* clean unused logging
* monotonic + json fixes
* del test
* remove whilelines
* bump laika
* cleanup
* remove deps
* logs nicer strings
* remove plotting from scirpt
* reset pipfile
* reset pipfile
* nicer strings
* bug fix
* bug fix
* pr comments cleaning
* remove plotting
* bug fix
* new demo route
* bump opendbc and panda
* cereal master
* cereal master
* script less komplex
* assertions
* matplotlib
* readme
* Update README.md
* graph html
* design fixes
* more code design
* Update common/logging_extra.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* whitespace
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update tools/latency_logger/latency_logger.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* pr comments
* bug fix
* readme + env once
* clean swaglog
* bug fix
* Update tools/latencylogger/README.md
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* revert
* revert
* clean swaglog with error
* remove typo file
* revert graph
* cereal
* submodules
* whitespaces
* update refs
Co-authored-by: Bruce Wayne <batman@workstation-openpilot2.internal>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
Willem Melching
67d6847039
camera_qcom2: target 40ms acquisition time, use register wizard ( #24093 )
...
* register values from wizard
* target 25fps to leave some room for timing jitter
* update max lines in ui
3 years ago
George Hotz
ab9c017311
add more logging to camera sensor probe
3 years ago
Willem Melching
94b8a3f08b
sensor2_i2c.h: remove unusedc B context ( #24092 )
3 years ago
Comma Device
a688811aa8
camerad: improve DEBUG_FRAMES message
3 years ago
Adeeb Shihadeh
8af20af66d
pylint: enforce indentation (W0311) ( #24039 )
...
* pylint: enforce indentation (W0311)
* few more
3 years ago
Adeeb Shihadeh
7cd8575c74
Revert "camerad: set QCOM CL perf hint ( #23791 )"
...
This reverts commit b079475ad3
.
3 years ago
Adeeb Shihadeh
b079475ad3
camerad: set QCOM CL perf hint ( #23791 )
...
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
George Hotz
5a11101bcf
camerad: imx390 support ( #23966 )
...
* something is output
* min stuff
* visible picture
* pics look good
* maybe
* whole sensor
* fix all cameras
* support both cameras
* autoexposure for imx390
* fix imx390 blacklevel
* touchups
* put gain in db scale
* inline and fix max exposure
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Gijs Koning
57b6fdc17a
Rename RGB vision streams to match YUV streams ( #23961 )
...
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD
VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD
VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER
* little more
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
George Hotz
a9b7f3bdd8
12bit only ( #23953 )
...
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
George Hotz
0adfef0b34
camera_qcom2 refactor ( #23946 )
...
* convert camerastate to a class
* more refactor
* do the refactor in file
* put that one back
* those changes can wait
* very minor
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Willem Melching
aabd9a0dff
camerad: log debayer + yuv processing time ( #23894 )
...
* camerad: log debayer + yuv processing time
* bump cereal
3 years ago
George Hotz
51767c037b
camerad: use open_v4l_by_name_and_index on c2 also ( #23794 )
...
* use open_v4l_by_name_and_index on c2 also
* remove open_v4l_by_name_and_index from qcom2
3 years ago
George Hotz
92e9823cc0
camerad: fast debayer on c2 cameras ( #23795 )
...
* fast debayer on c2 dcam
* add casts
* 128 local worksize on HDR debayer, 8 ms -> 3.5 ms
* width instead of saving rgb_width
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Adeeb Shihadeh
c6e0f1d841
camerad: adjust CL priority on comma three ( #23790 )
...
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
George Hotz
cb6a68373b
Prepare for using the ISP ( #23621 )
...
* parse out isp packet with structs
* dsp mode
* support only driver / comments for yuv
* minor touchups
* DEBUG_FRAMES
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Dean Lee
61383dcc42
camerad: cleanup main.cc ( #23593 )
...
* cleanup main.cc
* fix ae_gray_test build errors
3 years ago
Dean Lee
e6a73e400c
camerad: return 0 from main() ( #23565 )
3 years ago
George Hotz
7e83d9a618
camerad: Out of bounds memory write ( #23534 )
...
* parens were totally wrong
* cleaner
3 years ago
Ewout ter Hoeven
55390d273f
Convert format strings strings to f-strings ( #23241 )
...
* Convert all text strings to f-strings
Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.
Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.
F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale
* revert pyextra changes
* revert ublox.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
3 years ago
Willem Melching
36db473bab
comma two: remove lens sag compensation ( #23113 )
4 years ago
Dean Lee
b519acd37b
LapConv: remove hardcoded FULL_STRIDE_X ( #23200 )
...
* fix wroing stride_x
* remove hardcoded rgb_stride
4 years ago
Dean Lee
5c6229f3df
common_process_driver_camera: same parameters as process_thread_cb ( #23202 )
4 years ago
Dean Lee
9decd3d8a2
util: move all functions into util namespace ( #23203 )
4 years ago
Dean Lee
480fb54926
move struct LogCameraInfo into loggerd.h ( #23129 )
4 years ago
grekiki
6951b3271d
Python: Replace more lists with generators ( #23116 )
...
* Replace lists with generators v2
* Replace set with {}
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Replace more set() with {}
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Dean Lee
348d2d2b0d
rename yuv streams ( #23071 )
...
* rename yuv streams
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago