Willem Melching
599d52ded2
camerad: improve error logging ( #24550 )
...
old-commit-hash: 8811142787
3 years ago
Joost Wooning
fb32a313a1
debayering: fix divide for reading 12 bit values ( #24546 )
...
old-commit-hash: 8f9ba7540b
3 years ago
Willem Melching
3dcf2ab4f1
camerad: sanity check register data before parsing ( #24547 )
...
old-commit-hash: 1dcd5096ba
3 years ago
Adeeb Shihadeh
5659b6e6ce
more comma two cleanup ( #24300 )
...
* more comma two cleanup
* fix up power monitoring
old-commit-hash: 6a48a7acef
3 years ago
Adeeb Shihadeh
29a516bed8
replay: cleanup unused RGB buffers ( #24537 )
...
* replay: cleanup unused RGB buffers
* update replay cam
* little more
old-commit-hash: ab75c53792
3 years ago
Joost Wooning
da6d0d878a
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>
old-commit-hash: 489fbb74b0
3 years ago
Joost Wooning
4e1ff7b16b
debayering: code cleanup ( #24507 )
...
* debayering: code cleanup
* some more cleanup
old-commit-hash: 40ae0b8604
3 years ago
George Hotz
fe87234aa2
simplify and fix clamp ( #24479 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 01ab99d416
3 years ago
ZwX1616
24c44bf192
clean up gamma variable names ( #24476 )
...
old-commit-hash: 4354f7cd28
3 years ago
Joost Wooning
9ffe2ceb0e
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>
old-commit-hash: 49e10dc773
3 years ago
Willem Melching
171915797a
camerad: get embedded statistics and data by embedding in pixel data ( #24353 )
...
* camerad: AR0231 read embedded data and statistics
* reorder
* remove unrelated camera config
old-commit-hash: 95fa6b1df8
3 years ago
Joost Wooning
fd4ecc78b5
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
old-commit-hash: d8c0cf5d55
3 years ago
Joost Wooning
1f1bcb246e
make debayering consistent at edges ( #24437 )
...
old-commit-hash: 1f9907122a
3 years ago
Joost Wooning
d4579132d4
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>
old-commit-hash: 05f606c812
3 years ago
Willem Melching
4f495c36b5
camerad: cleanup DM exposure and move into camera_qcom2.cc ( #24391 )
...
* camerad: cleanup DM exposure and move into camera_qcom2.cc
* remove include
old-commit-hash: 6e0c25d654
3 years ago
George Hotz
3a6a5485f2
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>
old-commit-hash: b7ddce8bac
3 years ago
George Hotz
e7aac92b21
Revert "camerad: don't remap everything every time ( #24334 )" ( #24370 )
...
This reverts commit 30e9a8aab8337d6b5661f4acdb0f2cf8c1421504.
old-commit-hash: 5ddd2000b2
3 years ago
George Hotz
0c2a527b3e
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>
old-commit-hash: fb7d84875b
3 years ago
Lukas Petersson
544375abcf
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>
old-commit-hash: 397bd25e97
4 years ago
George Hotz
d73af8d298
C2: remove some dead code ( #24256 )
...
* remove some dead code
* still needed
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1795a2ac03
4 years ago
Adeeb Shihadeh
5a9644261f
remove comma two support ( #24248 )
...
* remove comma two support
* cleanup release files
* little more
* more libs
* no more gralloc
* add snpe back
old-commit-hash: 5c48e7bc86
4 years ago
George Hotz
b19c75d189
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>
old-commit-hash: 10d4766f76
4 years ago
Willem Melching
d8ade5e21c
camera processing time: float -> double
...
old-commit-hash: 03257bb0d8
4 years ago
Lukas Petersson
df8476118b
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>
old-commit-hash: 65fca83abe
4 years ago
Willem Melching
410557490f
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
old-commit-hash: 67d6847039
4 years ago
George Hotz
4b6cb2e9f3
add more logging to camera sensor probe
...
old-commit-hash: ab9c017311
4 years ago
Willem Melching
7541553c4e
sensor2_i2c.h: remove unusedc B context ( #24092 )
...
old-commit-hash: 94b8a3f08b
4 years ago
Comma Device
75069b1ece
camerad: improve DEBUG_FRAMES message
...
old-commit-hash: a688811aa8
4 years ago
Adeeb Shihadeh
bd71c594a2
pylint: enforce indentation (W0311) ( #24039 )
...
* pylint: enforce indentation (W0311)
* few more
old-commit-hash: 8af20af66d
4 years ago
Adeeb Shihadeh
b20ee9c4aa
Revert "camerad: set QCOM CL perf hint ( #23791 )"
...
This reverts commit 18cb65b8ef34dfecbd1ac6da1155886188307479.
old-commit-hash: 7cd8575c74
4 years ago
Adeeb Shihadeh
1e4a874da0
camerad: set QCOM CL perf hint ( #23791 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b079475ad3
4 years ago
George Hotz
41c71e87dd
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>
old-commit-hash: 5a11101bcf
4 years ago
Gijs Koning
cedd8abc05
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>
old-commit-hash: 57b6fdc17a
4 years ago
George Hotz
37bec7bf11
12bit only ( #23953 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a9b7f3bdd8
4 years ago
George Hotz
c0145ae709
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>
old-commit-hash: 0adfef0b34
4 years ago
Willem Melching
dfd521325d
camerad: log debayer + yuv processing time ( #23894 )
...
* camerad: log debayer + yuv processing time
* bump cereal
old-commit-hash: aabd9a0dff
4 years ago
George Hotz
10be5aad7a
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
old-commit-hash: 51767c037b
4 years ago
George Hotz
5c766bea95
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>
old-commit-hash: 92e9823cc0
4 years ago
Adeeb Shihadeh
3e578e7409
camerad: adjust CL priority on comma three ( #23790 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c6e0f1d841
4 years ago
George Hotz
abfc6de831
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>
old-commit-hash: cb6a68373b
4 years ago
Dean Lee
384e46644d
camerad: cleanup main.cc ( #23593 )
...
* cleanup main.cc
* fix ae_gray_test build errors
old-commit-hash: 61383dcc42
4 years ago
Dean Lee
120f43851d
camerad: return 0 from main() ( #23565 )
...
old-commit-hash: e6a73e400c
4 years ago
George Hotz
58a47e25bb
camerad: Out of bounds memory write ( #23534 )
...
* parens were totally wrong
* cleaner
old-commit-hash: 7e83d9a618
4 years ago
Ewout ter Hoeven
a962365292
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>
old-commit-hash: 55390d273f
4 years ago
Willem Melching
0574f0f774
comma two: remove lens sag compensation ( #23113 )
...
old-commit-hash: 36db473bab
4 years ago
Dean Lee
88e6b990d4
LapConv: remove hardcoded FULL_STRIDE_X ( #23200 )
...
* fix wroing stride_x
* remove hardcoded rgb_stride
old-commit-hash: b519acd37b
4 years ago
Dean Lee
4754da9fbc
common_process_driver_camera: same parameters as process_thread_cb ( #23202 )
...
old-commit-hash: 5c6229f3df
4 years ago
Dean Lee
dd7c226097
util: move all functions into util namespace ( #23203 )
...
old-commit-hash: 9decd3d8a2
4 years ago
Dean Lee
3ba7f99688
move struct LogCameraInfo into loggerd.h ( #23129 )
...
old-commit-hash: 480fb54926
4 years ago
grekiki
9e4cc1f7ff
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>
old-commit-hash: 6951b3271d
4 years ago