Commit Graph

108 Commits

Author SHA1 Message Date
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
ZwX1616 616b048906 camerad: frame sync OS (#32155)
auto

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ee01be71e1
2024-04-19 13:51:09 -07:00
ZwX1616 cc3550df2a camerad: OS HDR (#32112)
* it's something

* backup

* 16:10

* cleanup

* this is fine

* close

* remove some junk

* no heck

* disos

* real 10

* for some reason this is flipped

* 20hz

* no return

* ae

* tear

* need curve laster

* correct real gains

* fix time

* cleanup

* why the scam

* disable for now

* 0.7

* hdr

* that doesnt work

* what

* hugeoof

* clean up

* cleanup

* fix regs

* welp cant

* is this corrent

* it is sq

* remove

* back

* stg10bit

* back2ten

* Revert "remove"

This reverts commit 18712ab7e103c12621c929cd0f772ecb9b348247.

* 20hz and swb

* correct height

* 10bit

* ui hack for now

* slight

* perfect

* blk64

* ccm

* fix page faults

* template

* set 4x

* is this fine

* try

* this seems to work

* Revert "this seems to work"

This reverts commit d3c9023d3f14bd9394fed2d6276dba777ed0e606.

* needs to be static

* close

* 64 is optimal

* 2

* take

* not 1

* offset

* whats going on

* i have no idea

* less resistence

* box defs

* no

* reduce blur artifacts

* simplify

* fix

* fake short is too much for bright

* can be subzero

* should not use lsvc

* no wasted bit

* cont no slow

* no less than 10bit

* it is based

* wrong

* right

* quart

* shift

* raise noise floor

* 4.5/4.7

* same ballpark

* int is fine

* shane owes me m4a4

* Revert "shane owes me m4a4"

This reverts commit b4283fee18efebedae628a6cfd926ff1416dcfe5.

* back

* Revert "4.5/4.7"

This reverts commit e38f96e90cb5370bd378f6b66def9e7e3ed0ce5d.

* default

* oof

* clean up

* simpilfy

* from sensorinfo

* no div

* better name

* not the wrong one

* not anymore relevant

* too

* not call it debayer

* cl headers

* arg is 2nd

* gone is is_bggr

* define

* no is hdr

* rgb_tmp

* p1

* clean up

* 4

* cant for

* fix somewhre else

* const

* ap

* rects

* just set staruc

* nnew tmp

* hmm

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 03d1c48017
2024-04-19 13:44:03 -07:00
ZwX1616 f466145f34 image processing refactor and test (#32249)
* it's something

* backup

* 16:10

* cleanup

* this is fine

* close

* remove some junk

* no heck

* disos

* real 10

* for some reason this is flipped

* 20hz

* no return

* ae

* tear

* need curve laster

* correct real gains

* fix time

* cleanup

* why the scam

* disable for now

* 0.7

* hdr

* that doesnt work

* what

* hugeoof

* clean up

* cleanup

* fix regs

* welp cant

* is this corrent

* it is sq

* remove

* back

* stg10bit

* back2ten

* Revert "remove"

This reverts commit 18712ab7e103c12621c929cd0f772ecb9b348247.

* 20hz and swb

* correct height

* 10bit

* ui hack for now

* slight

* perfect

* blk64

* ccm

* fix page faults

* template

* set 4x

* is this fine

* try

* this seems to work

* Revert "this seems to work"

This reverts commit d3c9023d3f14bd9394fed2d6276dba777ed0e606.

* needs to be static

* close

* 64 is optimal

* 2

* take

* not 1

* offset

* whats going on

* i have no idea

* less resistence

* box defs

* no

* reduce blur artifacts

* simplify

* fix

* fake short is too much for bright

* can be subzero

* should not use lsvc

* no wasted bit

* cont no slow

* no less than 10bit

* it is based

* wrong

* right

* quart

* shift

* raise noise floor

* 4.5/4.7

* same ballpark

* int is fine

* shane owes me m4a4

* Revert "shane owes me m4a4"

This reverts commit b4283fee18efebedae628a6cfd926ff1416dcfe5.

* back

* Revert "4.5/4.7"

This reverts commit e38f96e90cb5370bd378f6b66def9e7e3ed0ce5d.

* default

* oof

* clean up

* simpilfy

* from sensorinfo

* no div

* better name

* not the wrong one

* not anymore relevant

* too

* not call it debayer

* cl headers

* arg is 2nd

* gone is is_bggr

* define

* no is hdr

* rgb_tmp

* p1

* clean up

* 4

* cant for

* fix somewhre else

* const

* ap

* rects

* just set staruc

* nnew tmp

* pull it for now

* 12

* common rect

* Revert "not anymore relevant"

This reverts commit 1d574673a16cc31b7a255609e07775c3579eef15.

* Revert "too"

This reverts commit c2d4dcc52a859fe799362f9fcc2ffda99b264e50.

* Revert "Revert "too""

This reverts commit 0abbabe1fde51592f1619058638b4ac6a6dee4b3.

* no tol is fine

* rename

* sensor id

* unsgin

* flag

* some linalg

* cast

* should be h ref

* cap

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 331c7b103a
2024-04-18 21:45:59 -07:00
ZwX1616 ec2d235c69 camerad: OS04C10 operational (#31674)
* it's something

* backup

* 16:10

* cleanup

* this is fine

* close

* remove some junk

* no heck

* disos

* real 10

* for some reason this is flipped

* 20hz

* no return

* ae

* tear

* need curve laster

* correct real gains

* fix time

* cleanup

* why the scam

* disable for now

* 0.7

* hdr

* that doesnt work

* what

* hugeoof

* clean up

* cleanup

* fix regs

* welp cant

* is this corrent

* it is sq

* remove

* back

* add base comment

* clean up

* make orders clear

* not abcd

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7eb1e95884
2024-03-08 16:43:18 -08:00
Adeeb Shihadeh 402e8f8b0e encoderd: fix large frames (#31681)
* encoderd: fix large frames

* Update camera_common.cc

* just do this for now

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 84797482e9
2024-03-06 16:19:08 -08:00
Justin Newberry de4644aa73 camerad: assert isp started successfully (#31385)
* isp assert

* disable this for testing

* Revert "disable this for testing"

This reverts commit e65cf6d4b457babcc1a980d40079a2d6aa6540b8.

* move below
old-commit-hash: c9951e9d6c
2024-02-10 14:49:45 -08:00
Adeeb Shihadeh 53659bbb43 camerad: flip OS04C10 image
old-commit-hash: 4962ffa14c
2024-02-01 20:24:00 -08:00
Adeeb Shihadeh 9488aafba4 add flaky package
old-commit-hash: fe4abaa6f6
2024-01-25 17:38:09 -08:00
Comma Device 96497667fa allow a couple retries
old-commit-hash: 076810d5bd
2024-01-25 17:13:35 -08:00
Adeeb Shihadeh 8277f37c4b camerad: move ae test to pytest/catch2 (#30994)
* mv ae gray test

* cleanup
old-commit-hash: 3e601b5e8f
2024-01-13 15:40:25 -08:00
Justin Newberry c8cc30112d rename segmentrangereader to logreader (#30981)
* Replace multilogiterator

* replace logreader

* update readme

* fix from_Bytes

* new section

* reset before iter

* selector

* fix internal

* whitespace
old-commit-hash: 3d73512c07
2024-01-12 12:53:50 -08:00
Justin Newberry 5087dcc5bb More migration to segmentrangereader (#30959)
* filter log message

* ffr

* gtfs

* gtfs
old-commit-hash: 32dfb3f8f2
2024-01-11 10:14:10 -08:00
Adeeb Shihadeh 1d1514449c OS04C10 support (#30658)
* getting frames

* ok

* support both output

* cleanup

* fix unused

* undo

* fix release files

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: cd1d7eb4d2
2024-01-09 14:19:10 -08:00
Adeeb Shihadeh cef8286550 camerad: log request id (#30935)
* camerad: log request id

* bump cereal

* bump cereal
old-commit-hash: 91c5c5eca7
2024-01-08 09:16:50 -08:00
Dean Lee cbbbaf22b7 camerad: zero memory before returning from MemoryManager::alloc (#30781)
* zero memory

* remove redundant memset

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b9080d2362
2023-12-18 13:54:11 -08:00
Dean Lee 6ae3e95542 camerad: cleanup includes (#30782)
* cleanup includes

* continue

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ab0b26d2b8
2023-12-17 22:42:52 -08:00
Dean Lee 9c4376a57f camerad/CameraBuf: remove deprecated rgb_stride (#30758)
old-commit-hash: ea7e701052
2023-12-15 19:48:26 -08:00
Dean Lee 89395a7a3f camerad/CameraBuf: rename yuv_type to stream_type (#30695)
old-commit-hash: 62670e66bf
2023-12-11 21:53:27 -08:00
Dean Lee 4dba841726 camerad: Remove deprecated 'fps' parameter (#30662)
remove parameter fps
old-commit-hash: 8a530621b4
2023-12-09 08:10:53 -08:00
Dean Lee 2b98a08180 camerad: remove camera_id (#30654)
* remove camera_id

* use variable
old-commit-hash: ea0b8920f5
2023-12-08 16:15:58 -08:00
Dean Lee 0b2219bb1f camerad: move ar0231_register_lut to AR0231 (#30652)
old-commit-hash: 21d5d7d07a
2023-12-08 14:57:29 -08:00
Dean Lee 8d17ed5bb8 camerad: c++ sensorInfo (#30650)
* move remaining sensor parameters to CameraInfo

* same order

* member functions

* fix segfault
old-commit-hash: fb2f2d9cb2
2023-12-08 14:27:28 -08:00
Dean Lee db18ad7467 camerad: define the constants directly in ctor (#30651)
old-commit-hash: 8fdcddec8a
2023-12-08 13:01:41 -08:00
Adeeb Shihadeh f483812d07 camerad: renames (#30649)
* sensorinfo

* drop the camera
old-commit-hash: e757d9bae7
2023-12-08 11:39:40 -08:00
Dean Lee 27284c4049 camerad: move sensor related code to `/sensors` (#30647)
old-commit-hash: ef262ff9eb
2023-12-08 11:19:10 -08:00
Dean Lee 8e1aa2e513 camerad: refactor sensor parameters to struct (#30644)
* refactor camerainfo

* include <memory>
old-commit-hash: 51328609d2
2023-12-08 00:01:16 -08:00
Dean Lee 91dda81a69 camerad: fix use of uninitialized `CameraInfo` in `camera_open()` (#30642)
old-commit-hash: 9bff8ccd0f
2023-12-07 20:11:44 -08:00
Adeeb Shihadeh 65aad94f0d Revert "camerad: refactor sensor parameters to struct (#30639)"
This reverts commit 166fdc950c23ccff7c6223b769dc916b6fbbc06a.

old-commit-hash: 0586f86ad0
2023-12-07 16:21:16 -08:00
Dean Lee 90e0e68376 camerad: refactor sensor parameters to struct (#30639)
* refactor camerainfo

* include <memory>
old-commit-hash: a70911d639
2023-12-07 16:06:55 -08:00
Dean Lee 164644e6b4 camerad: split sensor_ic2.h (#30641)
* split sensor_ic2.h

* move start_reg,stop_reg
old-commit-hash: bdf868ddc2
2023-12-07 15:45:49 -08:00
Dean Lee 3c4d6de5d1 camerad: move AR0231 functions to camera_ar0231.cc (#30635)
* move AR0231 functions to camera_ar0231.cc

* move to sensors/aro231.cc
old-commit-hash: ecfe201a57
2023-12-07 11:48:17 -08:00
Dean Lee 8c2f29dfb2 sensor2_i2c.h: add `#pragma once` (#30636)
old-commit-hash: 8bf78399e2
2023-12-07 10:21:14 -08:00
Greg Hogan e91032efb3 replace common.file_helpers.mkdirs_exists_ok with python os.makedirs funtion (#30618)
replace common.file_helpers.mkdirs_exists_ok with python os.makedirs function
old-commit-hash: db35dcd0b5
2023-12-06 09:55:29 -08:00
Adeeb Shihadeh 5acd765c1e camerad cleanup (#30573)
* misc cleanup

* rm those

* rm utils

* fix build

* rm pool

* little more

* goodbye imgproc
old-commit-hash: e34ee43eea
2023-12-01 20:10:07 -08:00
Dean Lee 54346eccee modeld: remove modeldata.h (#30423)
* remove modeldata.h

* remove TRAJECTORY_SIZE
old-commit-hash: 335237aea0
2023-11-18 22:45:26 -08:00
Adeeb Shihadeh 7df9a44085 camerad: reduce to 1s of buffers
old-commit-hash: 72cc2e34cb
2023-11-09 20:52:21 -08:00
Justin Newberry 3027a428cb Pytest: tici mark for skipping on-device tests (#30412)
* mark tici

* not those ones

* missed that one

* add those

* add pypoetry

* oops
old-commit-hash: aec7cea30d
2023-11-07 17:35:44 -08:00
Shane Smiskol 13381ed446 services: capitalize constant service list (#30005)
* rename

* bump

* Apply suggestions from code review
old-commit-hash: 7f073483bb
2023-09-21 18:25:15 -07:00
Adeeb Shihadeh 9397618cfb Update test_camerad.py
old-commit-hash: 18fbc1c29a
2023-08-31 14:09:52 -07:00
Adeeb Shihadeh 61cf541322 Minimal build (#29600)
* add build flag for minimum build

* add minimal build

* update

* fix pj

* bump opendbc

* update subaru
old-commit-hash: 4917e22615
2023-08-24 14:58:30 -07:00
Dean Lee de809632bf cpplint: add filter `whitespace/comma` (#29595)
old-commit-hash: 7bfd3dac81
2023-08-24 10:42:06 -07:00
Dean Lee 228d30d5a9 cpplint: add filter `whitespace/tab` (#29588)
old-commit-hash: 9c7bf50703
2023-08-24 08:06:58 -07:00