Commit Graph

150 Commits

Author SHA1 Message Date
Adeeb Shihadeh
8e8f61ad35 camerad: IFE debayer support (#33720)
* ife is up

* split out cdm, bps needs this too

* straight to vipc buffer

* start reducing the diff

* support both

* disable for now

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-10-12 13:07:30 -07:00
Adeeb Shihadeh
747acaac71 camerad: prep to unify IFE + BPS processing (#33770)
* unify

* fixup

* start porting over ife branch

* setup new bufs

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-10-11 20:49:30 -07:00
Adeeb Shihadeh
50baf37ddd camerad: fix CAM_SYNC requests (#33757)
* camerad: fix CAM_SYNC requests

* cast

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-10-09 11:56:46 -07:00
Adeeb Shihadeh
8cf1b79189 camerad: more ISP prep (#33752) 2024-10-08 14:07:13 -07:00
Adeeb Shihadeh
853febe21d visionipc: remove RGB support (#33739)
* visionipc: remove RGB support

* bump

* msgq master

* fix sim
2024-10-07 13:24:57 -07:00
Dean Lee
f7c4aad8bd cameread: remove outdated 'm' and 'atomic' libraries (#33714)
remove unused libs
2024-10-03 10:53:05 -07:00
Dean Lee
3ca158ad3e camerad: remove Hardware::PC() check (#33713)
remove check for hardware::PC
2024-10-02 21:14:37 -07:00
Dean Lee
2cb526a5a9 camerad: refactor gain index loop for clarity (#33613)
* Refactor Gain Index Loop for Clarity

* Update system/camerad/cameras/camera_qcom2.cc

* Update system/camerad/cameras/camera_qcom2.cc

---------

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-09-29 10:06:34 -07:00
ZwX1616
e5870dcf20 camerad: Replace ox LUT with function (#33659)
* fast eh

* need

* ;

* no chained

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-09-26 19:48:31 -07:00
ZwX1616
1d5b207974 Revert "camerad: Replace ox LUT with function" (#33658)
Revert "camerad: Replace ox LUT with function (#33653)"

This reverts commit 4851dacd06.
2024-09-26 17:32:06 -07:00
ZwX1616
4851dacd06 camerad: Replace ox LUT with function (#33653)
* fast eh

* need

* ;

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-09-26 09:51:04 -07:00
Adeeb Shihadeh
62d044c794 camerad: IFE config definitions (#33624)
* camerad: more definitions for IFE config

* comment
2024-09-22 15:49:12 -07:00
Adeeb Shihadeh
d5039bcbbe camerad: reduce internal ISP buffer count (#33619) 2024-09-22 14:24:37 -07:00
Robin Reckmann
312a1b2a65 camerad: fix: Explicitly include necessary headers (#33623)
camerad: Explicitly include necessary headers
2024-09-22 14:15:01 -07:00
Dean Lee
07f3f93bd9 camerad: remove SpectraCamera inheritance from CameraState and simplify initialization (#33611)
remove inherit

Co-authored-by: Comma Device <device@comma.ai>
2024-09-20 11:15:49 -07:00
Adeeb Shihadeh
20c983897b camerad: set patch_offset 2024-09-19 20:57:42 -07:00
Adeeb Shihadeh
bdb4b87fa5 rm debug print 2024-09-19 16:39:30 -07:00
Adeeb Shihadeh
df9b8f0222 camerad: final debayer prep (#33598)
* prep part 4?

* cleanup

* little less magic

* reorg

* final touches

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-09-19 16:14:29 -07:00
Dean Lee
eaebea0968 camerad: cleanup includes (#33600)
cleanup includes

Co-authored-by: Comma Device <device@comma.ai>
2024-09-19 14:16:48 -07:00
Dean Lee
34f5ba46b3 camerad: move handle_camera_event to SpectraCamera class (#33595)
move handle event

Co-authored-by: Comma Device <device@comma.ai>
2024-09-19 11:34:37 -07:00
Adeeb Shihadeh
eea06b4c3e camerad: camera_util is spectra (#33597)
* camerad: camera_util is spectra

* lil more

* mv that

* fix build

* runs on device

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-09-19 11:22:46 -07:00
Dean Lee
943aa616b3 camerad: add helper function get_gain_factor (#33594) 2024-09-19 10:58:49 -07:00
Dean Lee
b852aba670 camerad: fix POLLPRI event check in poll loop (#33591)
fix event check in poll loop to validate POLLPRI
2024-09-19 10:58:06 -07:00
Dean Lee
c95f0f039f camerad: move debugging parameters from camera_common.h to camera_qcom2.cc (#33589)
move debugging parameters

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-09-19 10:45:57 -07:00
Dean Lee
78db136914 camerad: remove libyuv dependency (#33593)
remove libyuv
2024-09-19 10:41:51 -07:00
Dean Lee
467bd74944 camerad: remove CameraType enum from camera_common.h (#33588)
remove CameraType from camera_common.h
2024-09-19 10:33:24 -07:00
Adeeb Shihadeh
80013219fe camerad: abstract out ISP handling (#33583)
* spectra and tici

* master

* move the rest

* rm stupid indirection

* start move

* multi cam state is dead

* rest is moved

* lil more

* mv that

* lil more

* fix pc build

* we haven't done rgb for a while

* bring this stuff back

* fix mac?

* no camera in ui!

* i remember why we always cut mac

* fix mac build

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-09-18 22:24:53 -07:00
Adeeb Shihadeh
718835a825 camerad: prep part 2 (#33584)
* no camerastate in sensors

* bring this over

* and encoder
2024-09-18 21:10:45 -07:00
Adeeb Shihadeh
5378e63812 it's not really rgb 2024-09-18 21:01:38 -07:00
Adeeb Shihadeh
b733b875f8 camerad: ci -> sensor rename (#33582)
* camerad: ci -> sensor rename

* no behavior change for now
2024-09-18 15:51:03 -07:00
Adeeb Shihadeh
e04455cbaa selfdrived: controlsd only does controls (#33485)
* selfdrived

* process replay

* lil more

* set the valids

* rename that
2024-09-06 17:16:32 -07:00
Dean Lee
ad42551437 camerad: encapsulate cl_command_queue in ImgProc (#33178)
move cl queue to imgproc
old-commit-hash: 8f9b165de8
2024-08-03 14:57:26 -07:00
Dean Lee
7adc4219f0 camerad: update frame msg related variable types to uint64_t for consistency (#33113)
Update frame_msg related variable types to uint64_t for  type safety
old-commit-hash: c40d129f70
2024-08-02 12:57:29 -07:00
Dean Lee
2a16a305b3 camerad: move do_exit to camera_qcom2.cc (#33086)
move do_exit to camera_qcom2.cc
old-commit-hash: 8ab587d30b
2024-08-02 12:18:10 -07:00
Dean Lee
b12b30c328 camerad: encapsulating event management within the ImgProc Class (#33119)
Encapsulating Event Management Within the ImgProc Class
old-commit-hash: 2189164d45
2024-08-02 12:16:04 -07:00
ZwX1616
03fa24ee82 camerad: use os binning (#33161)
* all

* right sz

* what is this

* Revert "what is this"

This reverts commit 3ff771926f109452a055dfb61cee06b34e498164.

* ok

* big

* update intrs

* fl

* more specifuc

* fish

* revert

* revert

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 3ccc63deec
2024-07-31 19:10:44 -07:00
Dean Lee
01ac526046 camerad: merge thread functions into one (#33025)
merge multiple thread functions into one
old-commit-hash: ccd369ee96
2024-07-25 15:05:14 -07:00
Dean Lee
5b5e3ef053 camerad: add CameraConfig struct for initializing CameraState in constructor (#33065)
* Add CameraConfig struct for initializing CameraState in constructor

* init member variables
old-commit-hash: 75f49f84f3
2024-07-25 13:09:03 -07:00
Dean Lee
4d6d229820 camerad: refactor camera_open() into separate functions for clarity (#33056)
split function
old-commit-hash: 0fa6745a67
2024-07-24 10:07:10 -07:00
Adeeb Shihadeh
5025140f37 Revert "camerad: add CameraConfig struct for initializing CameraState in constructor (#33034)"
This reverts commit 8ef650da47eec8b64e2aedcba5114ca1a2428a89.

old-commit-hash: cefe00c964
2024-07-21 20:36:45 -07:00
Dean Lee
3f327ef4d3 camerad: add CameraConfig struct for initializing CameraState in constructor (#33034)
* Add CameraConfig struct for initializing CameraState in constructor

* Update system/camerad/cameras/camera_qcom2.h

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dc886e195f
2024-07-21 19:19:34 -07:00
Dean Lee
cc3f9090bf cereal: deprecate FrameData.frameType (#33019)
deprecate FrameData.frameType
old-commit-hash: 917ea5699f
2024-07-19 10:14:04 -07:00
Harald Schäfer
05ed3d8c15 Restructure msgq (#32652)
* Update ref

* Compiles

* compiles

* Refactor rest of libs

* import all

* small fiex

* cleanup import

* Need msgq simlink too

* Add to openpilot docker too

* try repo

* Updates

* Fix lint

* fix docs

* Try blank slate

* Revert "Try blank slate"

This reverts commit f078ce04acacfe115c19e23e86038b01e2b84a6d.

* Maybe scons needs this to clear cache

* fix tests

* Disable test for now

* Update SConstruct

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Fix whitespace

* Write skip normal

* small fixes

* add test path

* Revert repo

* linting

* whitespace

* Bump msgq

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e70dc90a45
2024-06-09 17:44:34 -07:00
Harald Schäfer
f870a968e9 Split cereal into cereal/msgq (#32631)
* squash

* fix doc

* compile device

* compile device

* Update ref

* add msgq to precommit exclusions

* No service ports

* fix compile

* address comments

* More comments

* Delete logger

* Update opendbc

* Linting

* bump msgq
old-commit-hash: e71ec4e8d7
2024-06-06 14:31:56 -07:00
Adeeb Shihadeh
30c41788dc thermald is hardwared (#32637)
* thermald is deviced

* hardwared

* rename
old-commit-hash: 51fdf23304
2024-06-05 15:58:00 -07:00
Adeeb Shihadeh
86b6103657 test_*.py files are no longer executable (#32610)
* test_*.py files are no longer executable

* cleanup empty lines

* update precommit

* fixme

* enable

* build
old-commit-hash: c59887c810
2024-06-03 15:48:56 -07:00
Adeeb Shihadeh
cc4f53e6c6 manager: move to system/ (#32538)
* manager: move to system/

* one more
old-commit-hash: accdade4cf
2024-05-25 12:41:17 -07:00
cl0cks4fe
639a634f7c Unittest to pytest (#32366)
* add pytest-asyncio

* switch common

* switch selfdrive

* switch system

* switch tools

* small fixes

* fix setUp and valgrind pytest

* switch to setup

* fix random

* switch mock

* switch test_lateral_limits

* revert test_ui

* fix poetry.lock

* add unittest to banned-api

* add inline ignores to remaining unittest imports

* revert test_models

* revert check_can_parser_performance

* one more skip

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dd9d5d4528
2024-05-17 11:01:44 -07:00
Andrei Radulescu
1cbb26bcc7 camerad: cast ci->image_sensor to unsigned short (#32317)
fixes 24.04 build
old-commit-hash: 6a52507e3a
2024-05-01 15:00:25 -07:00
Dean Lee
2772be8303 camerad: Localizing the variable "ret" (#32294)
Localizing the variable "ret"
old-commit-hash: edb683a62b
2024-04-25 11:08:27 -07:00