Commit Graph

181 Commits

Author SHA1 Message Date
Adeeb Shihadeh
1139fe507b Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
2022-06-11 16:38:24 -07:00
ZwX1616
c646eeee0a Revert fullframe DM model (#24812)
* Revert "fullframe DM: flip RHD yaw to use matching thresholds"

This reverts commit 2ac6931003.

* Revert "fullframe DM model (#24762)"

This reverts commit d6c07a6b15.

* revert cereal
2022-06-10 16:16:46 -07:00
ZwX1616
d6c07a6b15 fullframe DM model (#24762)
* get log

* simplify two nonsense

* not needed

* libyuv is a joke

* clean up

* try small

* fast but not bad

* working

* clean up driverview

* simplified

* thats mirrored

* smol

* tweak

* ref is screen

* w/ ee

* update camera model

* no if TICI

* start

* update pose thresh

* less cpu more dsp

* new libyuv

* new snpe

* add files

* test

* should be fast

* update out len

* trigger test

* use master snpe

* add cereal

* update cereal

* refactor parsing

* missing ;

* get

* wrong type

* test model

* use driver data

* 10829278-72fe-4283-a118-2cef959ce174/1550

* no pf

* adapt driverview

* ;

* rhd learner

* update libyuv buildi x64

* ad4337ea

* remove blink slack

* test

* no

* use toggle

* b16

* fix for nv12

* 5b02cff5 both

* update test

* update cereal

* update cereal

* update cereal

* v2 packets

* revert libyuv

* no /

* update snpemodel

* ;

* memcpy

* fix test

* use toggle in driverview

* update power

* update replay

* Revert "update replay"

This reverts commit 1d0979ca59dbc89bc5890656e9501e83f0556d50.

* update model ref

* halve cpu

* fake 8bit onnx runner

* same thresh as report

* cereal master

Co-authored-by: Comma Device <device@comma.ai>
2022-06-08 20:13:46 -07:00
Adeeb Shihadeh
bee5531816 AGNOS 5.1 (#24741) 2022-06-03 19:38:34 -07:00
Adeeb Shihadeh
0ee647df3a fix camera power draw test (#24739)
* fix camera power draw test

* update modeld

Co-authored-by: Comma Device <device@comma.ai>
2022-06-03 14:03:49 -07:00
Adeeb Shihadeh
38cd340922 AGNOS 5 (#24692)
* AGNOS 5

* some more stuff
2022-06-02 17:09:09 -07:00
Willem Melching
f49a9c9fd2 less TICI when not needed (#24698)
* less TICI when not needed

* fix process replay

* move reading voltages into hw abstraction layer

* Update selfdrive/hardware/tici/hardware.h

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

* Update selfdrive/hardware/hw.h

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

* Update selfdrive/hardware/base.h

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

* rename init function

* Update selfdrive/athena/athenad.py

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>

* Update selfdrive/boardd/boardd.cc

* Apply suggestions from code review

* Update selfdrive/thermald/thermald.py

* update ref

* fix alert width if all cameras are bad

* add ecam to test_loggerd

* bump cereal

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
2022-06-02 15:20:51 +02:00
George Hotz
ea5b8cdfb1 nv12: encoderd avoids a full frame copy (#24519)
* rgb to nv12

* nv12 works (w memcpy)

* correct now

* no copy

* fix nv12 with fast debayer

* reverts of unused stuff

* ui use nv12

* comment out thumbnails for now

* rebase fix

* dm read nv12

* model read nv12

* fix ffmpeg encoder

* thumbnails from nv12

* replay to nv12

* python framereader support nv12

* remove hardcoded frame/buffer sizes

* fix build

* ffmpeg encoder fix buffers

* small cleanup

* reduce power usage test

* fix cpu usage test

* fix snapshot

* fix loggerd test

* bump cereal

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Joost Wooning <jwooning@gmail.com>
2022-06-01 17:18:28 +02:00
Adeeb Shihadeh
5f00c6eca7 tici: always configure modem as data-centric (#24663)
According to the Quectel docs, this is how it should be configured
for both AT&T and T-Mobile (and likely any other carriers).
2022-05-26 17:13:43 -07:00
Comma Device
13b2c551c9 update modem restart script 2022-05-25 16:37:56 -07:00
George Hotz
7c74ab8992 camerad: pixclk 88mhz but frame time the same (#24587)
* pixclk 88mhz but frame time the same

* scale integration time

* 22.8 ms

* 15.18 ms

* fix exposure

* fix glitching, 18.9 ms

* set both to min

* faster pixclk = more power

* should pass CI

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-05-24 09:54:46 -07:00
Adeeb Shihadeh
4ef94a436f affine aux panda IRQ to boardd core (#24600) 2022-05-20 10:16:56 -07:00
Adeeb Shihadeh
cb8885cffb Merge common/ and selfdrive/common (#24556)
* Merge common/ and selfdrive/common

* fix that

* fix version

* fix unit tests
2022-05-18 14:11:57 -07:00
George Hotz
72b52f8b7d make debayer faster (#24557)
* remove local caching

* remove local caching

* reduce camerad power

* break stupid imx390 black level support

* handle edges

* now 13ms, vignetting is 'slightly' less correct

* halfs->floats and inlines, down to 12.9ms

* oops, fix float

* val from 12 is ushort

* don't decide vignetting in the debayer kernel

* 7.77 ms

* adding back black level support was free

* Revert "adding back black level support was free"

This reverts commit a841d17727886807a040dcf856ab22480fa93eff.

* minor

* rip out unused gain and black level, remove print

* save 150mW

* fix replay test

* fix top/bottom rows

* lame left right edge fix

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Joost Wooning <jwooning@gmail.com>
2022-05-17 10:18:36 -07:00
Adeeb Shihadeh
6a48a7acef more comma two cleanup (#24300)
* more comma two cleanup

* fix up power monitoring
2022-05-15 17:55:22 -07:00
George Hotz
94b9972eb7 encoderd: enable (#24492)
* enable encoderd

* correct enable line

* fix loggerd tests

* fix power draw and cpu tests

* correct cpu for encoderd

* fix a bug, video_writer is shared

* fix issue with not recording dcam

* add recording state

* wooo tests pass. encode id keeps counting

* core 3

* loggerd then encoderd

* stop loggerd first

* core 3 always online

* see the camera when we see encoder packet

* encoderd on small core uses 37%

* remove encoder logic from loggerd

* delete unit test that doesn't really make sense anymore

Co-authored-by: Comma Device <device@comma.ai>
2022-05-13 17:56:02 -07:00
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>
2022-05-13 16:49:31 +02:00
Dylan Herman
d2eef1955c add mypy check for return-any (#24379)
* add mypy check for return-any

* remove unused import

* typing

* remove unnecessary variable typing

* cleanup

* cleanup

* bump submodules

* small fixes

* only a problem on mac

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-05-12 14:59:00 +02:00
Comma Device
5ac22d80de faster modem restart 2022-05-09 14:06:55 -07:00
Adeeb Shihadeh
ce0cc1f228 tici modem restart script 2022-05-08 19:18:07 -07:00
George Hotz
ed3be29bfa no encoder throttle (#24457)
Co-authored-by: Comma Device <device@comma.ai>
2022-05-06 16:31:21 -07:00
Adeeb Shihadeh
c971061859 power draw test improvements (#24368)
Co-authored-by: Comma Device <device@comma.ai>
2022-04-29 10:56:39 -07:00
Dylan Herman
ee0021b86c Add --warn-redundant-casts to mypy checks (#24304)
* add mypy checks for redundant-casts and unused-ignores

* revert unnecessary changes

* ignore

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-27 12:07:53 -07:00
Adeeb Shihadeh
59134c05d6 pandad: better handling of internal panda failures (#23755)
* reset internal panda

* recover

* internal dfu

Co-authored-by: Comma Device <device@comma.ai>
2022-04-26 11:02:40 -07:00
Adeeb Shihadeh
b88fb037ab tici downclock (#24088)
* tici downclock

* fix that

* gp ref

* lower that a bit

* that was a scam

* perf

* update power

* increase that

Co-authored-by: Comma Device <device@comma.ai>
2022-04-22 14:14:59 -07:00
Adeeb Shihadeh
37dbc7be0c CI: power draw test (#24292)
* CI: power draw test

* initialize hardware

* try this

* fix that

* happy linter

* actually happy

Co-authored-by: Comma Device <device@comma.ai>
2022-04-21 23:13:20 -07:00
grekiki
b8b15d5cf1 mypy: enable --warn-unreachable (#24282)
* Optional solves mypy assuming None is always None

* oops

* spaces

* Update registration.py

* fix local error

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-04-21 18:27:45 +02:00
George Hotz
3b2421baa0 precise power measurement script 2022-04-20 12:15:11 -07:00
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
2022-04-18 17:55:23 -07:00
George Hotz
9318e02a52 Power draw test (#24196)
* power draw test

* power draw measure

* fix cam power draw

* no star import

* fix static

Co-authored-by: Comma Device <device@comma.ai>
2022-04-12 15:33:27 -07:00
Adeeb Shihadeh
c1388636a2 comma three: correctly set initial EPS bearer settings for AT&T sim cards (#24175)
* 3g sunset

* only for blue prime

* pass

* full att code

Co-authored-by: Comma Device <device@comma.ai>
2022-04-11 15:33:58 -07:00
Adeeb Shihadeh
cf6c0ef19a tici IRQ tuning (#24170)
* first pass

* move that back

* move that

Co-authored-by: Comma Device <device@comma.ai>
2022-04-11 10:49:27 -07:00
Willem Melching
be35caca61 Log modem version and some NV values (#24137)
* add back modem version number logging

* tici only

* log nv

* make event

* str cast
2022-04-05 14:29:07 -07:00
Robbe Derks
68f86d815e Add power usage stat (#24055) 2022-03-29 11:30:13 +02:00
Adeeb Shihadeh
aeb98b3937 bunch of gpu config (#23932)
Co-authored-by: Comma Device <device@comma.ai>
2022-03-25 13:46:36 -07:00
Adeeb Shihadeh
8af20af66d pylint: enforce indentation (W0311) (#24039)
* pylint: enforce indentation (W0311)

* few more
2022-03-24 23:23:29 -07:00
Comma Device
03ac5bb4e3 cleanup tici_init in launch script 2022-03-21 16:45:24 -07:00
George Hotz
814741dafe thermald: use named thermal zones (#23936)
* thermald: use named thermal zones

* remove print

* and for c2

Co-authored-by: Comma Device <device@comma.ai>
2022-03-14 14:45:50 -07:00
Willem Melching
da5a0c41a0 C3: detect metered Android hotspot (#23734)
* C3: detect metered networks

* show in ui

* fix text layout

* bump cereal

* revert ui changes

* set networkMetered

* add athena method

* add metered logging to uploader

* use in athena uploader

* remove param

* use networkmanager properties to set cell to unmetered

* fix indentation

* no need to check

* bump cereal

* review

* bump cereal
2022-03-09 11:36:52 +01:00
Adeeb Shihadeh
a1b795cd78 AGNOS 4 (#23724) 2022-02-08 19:48:14 -08:00
Willem Melching
0d099e07aa athena: add suport for download bandwith setting (#23727)
* athena: add suport for download bandwith setting

* clean ingress rules
2022-02-08 12:07:11 +01:00
Adeeb Shihadeh
4c766934be reduce shutdownd CPU usage (#23723)
* reduce shutdownd CPU usage

* sync

Co-authored-by: Comma Device <device@comma.ai>
2022-02-07 18:50:54 -08:00
Willem Melching
4c406cdbe5 Add setUploadLimit method to athena (#23693)
* Add setUploadLimit method to athena

* add comments

* move to hw abstraction layer

* move to hw

* better errors
2022-02-07 16:55:16 +01:00
Adeeb Shihadeh
2372f4d6db remove debug prints 2022-02-04 23:32:39 -08:00
Adeeb Shihadeh
62e0bd5f0d NEOS 19.1 (#23707)
* NEOS 19.1

* add logging

* new manifest

* prod bucket

Co-authored-by: Comma Device <device@comma.ai>
2022-02-04 22:54:12 -08:00
Adeeb Shihadeh
6a9514570c NEOS 19 (#23586)
* NEOS 19

* prod manifest
2022-01-21 00:12:33 -08:00
Adeeb Shihadeh
a4f4d4c2cd androidd: track system_server too 2022-01-20 14:37:15 -08:00
Adeeb Shihadeh
fc8d402713 androidd cloudlogs are errors 2022-01-19 23:48:02 -08:00
Dean Lee
22d43211d9 loggerd: make test_loggerd.py run on PC (#23574)
* run on PC

* set frameId

* remove todo

* rawlogger: remove suffix mkv

* remove unused import PC

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-19 13:55:02 -08:00
Adeeb Shihadeh
610b99fd68 Log android system shutdown to param (#23520)
* Log android system shutdown to param

* comment

Co-authored-by: Comma Device <device@comma.ai>
2022-01-13 22:40:35 -08:00