Commit Graph

164 Commits

Author SHA1 Message Date
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
Willem Melching
3ce4976db7 thermald: track engaged state in param and kmsg (#23478)
* thermald: track engaged state in param

* write in kmsg

* format string

* move to python
2022-01-10 19:54:07 +01:00
Robbe Derks
842ba8e5e6 C2 detection (#23439)
* two detection

* fix CI

* catch all

* gotta catch em all
2022-01-10 13:13:52 +01:00
George Hotz
dc96d4bee7 Add More Types for mypy (#23268)
* mypy passes

* a few more

* a few in manager

* more types, will lint

* more

* simple types

* events type

* Update selfdrive/thermald/thermald.py

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-12-28 18:07:00 +01:00
Willem Melching
14bf834fef Abstract classes inherit from ABC (#23246) 2021-12-16 15:31:53 +01:00
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>
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh
8a229826cf androidd: reduce cloudlog spam 2021-12-13 17:42:15 -08:00
Adeeb Shihadeh
7c9fa91fb8 fix missing time import 2021-12-10 20:14:24 -08:00
Adeeb Shihadeh
85b90883ad AGNOS 3 (#23172)
* AGNOS 3

* always forget to do this

* update

* release manifest
2021-12-08 19:24:40 -08:00
Adeeb Shihadeh
f71085484d tici: lower min volume 2021-12-08 18:54:16 -08:00
Adeeb Shihadeh
e4caaeb2d3 tests for agnos manifest (#23176) 2021-12-08 16:21:12 -08:00
Adeeb Shihadeh
c8e64b2c62 tici: higher cpu freq while offroad (#23151) 2021-12-07 21:44:35 -08:00
Adeeb Shihadeh
1501c2e376 whole new family (#23157)
* family two

* more volume

* repeating dm sound

* update tests
2021-12-07 13:45:49 -08:00
Adeeb Shihadeh
5e20a46db6 tici: use powersave CPU governor while offroad (#23146)
* tici: use powersave CPU governor while offroad

* fix path
2021-12-06 13:53:55 -08:00
Adeeb Shihadeh
3b367e6872 Newer sounds (#23091)
* new prompt sound

* padding

* prompt distracted

* debug

* fix spelling

* lower min volume

* better volume at low speeds

* revert debug

* revert that

* fix tests

* update refs

Co-authored-by: Comma Device <device@comma.ai>
2021-12-02 00:28:25 -08:00
Adeeb Shihadeh
e679d05d9e New sounds (#22652)
* new engage/disengage + amp config

* first family

* cleanup audible alerts

* tici isn't special

* fix up debug cycle alerts

* these were better

* extend range

* use distracted sound

* log scaling

* getting closer

* slightly louder

* prompt

* update tests

* update refs

* fix c2 test

* resolve todo

* adjust tolerance

* revert for now

* should work

Co-authored-by: Comma Device <device@comma.ai>
2021-11-30 19:47:33 -08:00
Vehicle Researcher
29a8fe272c fix pmic temp scale on comma two 2021-11-29 13:41:48 -08:00
George Hotz
6462ced209 thermald: track power usage / pmic temps (#23013)
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-23 16:08:20 -08:00