Commit Graph

142 Commits

Author SHA1 Message Date
Adeeb Shihadeh
ccb2d2a6c4 AGNOS 4 (#23724)
old-commit-hash: a1b795cd78
2022-02-08 19:48:14 -08:00
Willem Melching
db3eef978f athena: add suport for download bandwith setting (#23727)
* athena: add suport for download bandwith setting

* clean ingress rules
old-commit-hash: 0d099e07aa
2022-02-08 12:07:11 +01:00
Adeeb Shihadeh
8343e21ea7 reduce shutdownd CPU usage (#23723)
* reduce shutdownd CPU usage

* sync

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

* add comments

* move to hw abstraction layer

* move to hw

* better errors
old-commit-hash: 4c406cdbe5
2022-02-07 16:55:16 +01:00
Adeeb Shihadeh
b4aa271d0b remove debug prints
old-commit-hash: 2372f4d6db
2022-02-04 23:32:39 -08:00
Adeeb Shihadeh
949ff0b921 NEOS 19.1 (#23707)
* NEOS 19.1

* add logging

* new manifest

* prod bucket

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 62e0bd5f0d
2022-02-04 22:54:12 -08:00
Adeeb Shihadeh
3aaf423dde NEOS 19 (#23586)
* NEOS 19

* prod manifest
old-commit-hash: 6a9514570c
2022-01-21 00:12:33 -08:00
Adeeb Shihadeh
686a34fd32 androidd: track system_server too
old-commit-hash: a4f4d4c2cd
2022-01-20 14:37:15 -08:00
Adeeb Shihadeh
5a5ef1bf74 androidd cloudlogs are errors
old-commit-hash: fc8d402713
2022-01-19 23:48:02 -08:00
Dean Lee
75a22388c7 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>
old-commit-hash: 22d43211d9
2022-01-19 13:55:02 -08:00
Adeeb Shihadeh
2f87bde2ff Log android system shutdown to param (#23520)
* Log android system shutdown to param

* comment

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 610b99fd68
2022-01-13 22:40:35 -08:00
Willem Melching
efc06c6290 thermald: track engaged state in param and kmsg (#23478)
* thermald: track engaged state in param

* write in kmsg

* format string

* move to python
old-commit-hash: 3ce4976db7
2022-01-10 19:54:07 +01:00
Robbe Derks
08212107e8 C2 detection (#23439)
* two detection

* fix CI

* catch all

* gotta catch em all
old-commit-hash: 842ba8e5e6
2022-01-10 13:13:52 +01:00
George Hotz
86a39e838b 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>
old-commit-hash: dc96d4bee7
2021-12-28 18:07:00 +01:00
Willem Melching
686a38aea4 Abstract classes inherit from ABC (#23246)
old-commit-hash: 14bf834fef
2021-12-16 15:31:53 +01:00
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
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh
0a43e415cc androidd: reduce cloudlog spam
old-commit-hash: 8a229826cf
2021-12-13 17:42:15 -08:00
Adeeb Shihadeh
1d429f7e90 fix missing time import
old-commit-hash: 7c9fa91fb8
2021-12-10 20:14:24 -08:00
Adeeb Shihadeh
72bf2bd452 AGNOS 3 (#23172)
* AGNOS 3

* always forget to do this

* update

* release manifest
old-commit-hash: 85b90883ad
2021-12-08 19:24:40 -08:00
Adeeb Shihadeh
b81a0ae865 tici: lower min volume
old-commit-hash: f71085484d
2021-12-08 18:54:16 -08:00
Adeeb Shihadeh
83a0271f2c tests for agnos manifest (#23176)
old-commit-hash: e4caaeb2d3
2021-12-08 16:21:12 -08:00
Adeeb Shihadeh
37985cb592 tici: higher cpu freq while offroad (#23151)
old-commit-hash: c8e64b2c62
2021-12-07 21:44:35 -08:00
Adeeb Shihadeh
9c702c779e whole new family (#23157)
* family two

* more volume

* repeating dm sound

* update tests
old-commit-hash: 1501c2e376
2021-12-07 13:45:49 -08:00
Adeeb Shihadeh
c01f1a8f31 tici: use powersave CPU governor while offroad (#23146)
* tici: use powersave CPU governor while offroad

* fix path
old-commit-hash: 5e20a46db6
2021-12-06 13:53:55 -08:00
Adeeb Shihadeh
6c2182c026 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>
old-commit-hash: 3b367e6872
2021-12-02 00:28:25 -08:00
Adeeb Shihadeh
dccb8b4010 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>
old-commit-hash: e679d05d9e
2021-11-30 19:47:33 -08:00
Vehicle Researcher
561052bed4 fix pmic temp scale on comma two
old-commit-hash: 29a8fe272c
2021-11-29 13:41:48 -08:00
George Hotz
5d990ad509 thermald: track power usage / pmic temps (#23013)
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6462ced209
2021-11-23 16:08:20 -08:00
Willem Melching
8075022d8e modem.Command timeout is in seconds (#22851)
* modem.Command timeout is in seconds

* getting tempts needs longer timeout
old-commit-hash: 14f0df0f22
2021-11-10 16:05:27 +01:00
Dean Lee
c1a3683ccb soundd: misc cleanup + tests (#22796)
* pass AudibleAlert to setAlert

* apply reviews

* remove trailing underscore

* add current_alert_type

* common function get_alert

* same freq as ui

* small cleanup

* setvolumne on change

* static Alert::get

* test_sounds

* remove old test files

* loop twice

* assert loopsRemaining

* assert stop

* init to min_volumne

* Revert "remove old test files"

This reverts commit 12e8bfefae1ae7f8649d3eda1e4126ff8eb1fe17.

* move to ui/soundd

* move test to tests/test_sound.cc

* remove old tests

* cleanup

* lower volume

* Revert "remove old tests"

This reverts commit e6bb12abfa3d5cd0aa8986d2b8da0b1edc7ea31b.

* return Alert

* cleanup

* remove #include <optional>

* cleanup .gitignore

* revert to std::optional

* Revert "revert to std::optional"

This reverts commit a66291c51f3a846652837cc4a43d5d60dd81896b.

* cleanup

* remove volume check

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 797bb1acb0
2021-11-09 14:18:29 -08:00
Adeeb Shihadeh
087a332532 flush progress print from agnos and neos updaters
old-commit-hash: 7c611cd711
2021-10-16 14:13:17 -07:00
Adeeb Shihadeh
18b2d1fee0 thermald: log screen brightness (#22570)
* thermald: log screen brightness

* bump cereal
old-commit-hash: d708b5b546
2021-10-15 17:19:45 -07:00
Dean Lee
78f3f21f90 HardwarePC::TICI() : use util::getenv (#22532)
old-commit-hash: 1e78a06b84
2021-10-14 14:23:05 -07:00
Adeeb Shihadeh
782d7023d2 phonelibs -> third_party (#22477)
* git mv to third_party

* find and replace

* fix release tests

* update pre-commit

* update tici bins

* update eon bins

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5b641379ae
2021-10-07 16:32:44 -07:00
Adeeb Shihadeh
afe88f7552 only run get_nvme_temps on C3 (#22464)
* only run get_nvme_temps on C3

* temperatures

* fix imports

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 493e32431c
2021-10-06 20:32:22 -07:00
Adeeb Shihadeh
a4bc663ae5 agnos 2 (#22390)
* agnos 2

* release notes
old-commit-hash: 29b2a7d20b
2021-09-30 21:56:44 -07:00
Adeeb Shihadeh
74f3f4ab1a agnos updater: support non-sparse images (#22371)
* print progress for all partitions

* noop generator

* less spammy

* cleanup
old-commit-hash: 425020a849
2021-09-29 11:08:19 -07:00
Adeeb Shihadeh
f53a09f40e log nvme temp (#22296)
* log nvme temp

* fix high cpu

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 212d2c3998
2021-09-21 14:39:07 -07:00
Robbe Derks
4827dea04c Log modem temps on Tici (#22281)
* log max modem temp

* not sure what happened here

* fix this

* make modem temps a list

* this is not needed

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6117c7ce81
2021-09-21 14:40:05 +02:00
George Hotz
73a4b05065 allow PC to emulate TICI with TICI=1
old-commit-hash: 362f067c9c
2021-09-14 10:48:43 -07:00
Adeeb Shihadeh
9193e1afa1 Unify neos/agnos updaters (#22109)
* start moving neos updater

* downloading

* ui

* move recovery

* resuming

* add verification

* fix up launch

* test

* update updater

* fix mypy

* fake updater

* review suggestions

* more tests

* abc

* update bin

* raise

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b3705ede5e
2021-09-10 17:03:54 -07:00
Adeeb Shihadeh
edc6f4ba7e agnos 1.5 (#22147)
* agnos 1.5

* bump version
old-commit-hash: 745de33941
2021-09-06 20:17:37 -07:00
Adeeb Shihadeh
af87a0b1a3 agnos 1.4 (#22029)
old-commit-hash: dde69fb933
2021-08-23 20:35:04 -07:00
Dean Lee
29ec7b83bf params: remove persistent params (#21975)
* cleanup constructors

* remove persistent_param

* remove test_persist_params_put_and_get
old-commit-hash: 3b752a307f
2021-08-20 16:57:45 -07:00
Adeeb Shihadeh
67a7abb492 android health daemon (#21965)
* androidd

* three strikes

* better logging

* persistent

* add to release files

* cleanup

* no cpu usage

* colon

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c8ca56dddd
2021-08-19 16:00:05 -07:00
Adeeb Shihadeh
2c5f93bccc agnos 1.3 (#21924)
* agnos 1.3

* update updater

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 058724e61d
2021-08-13 13:57:45 -07:00
Adeeb Shihadeh
48f53addbf tici: set amplifier config after exiting power save (#21920)
old-commit-hash: 3193396969
2021-08-13 00:46:54 -07:00
Adeeb Shihadeh
6c4bf564c4 agnos 1.2 (#21847)
old-commit-hash: 589f82c766
2021-08-04 11:10:05 -07:00
Dean Lee
94d534afea hw.h: move Hardware-related paths to namespace Path (#21826)
* refactor getenv and path

* apply review
old-commit-hash: fefc70b4ca
2021-08-04 13:29:03 +02:00
Adeeb Shihadeh
39429b6209 update agnos (#21813)
old-commit-hash: c545dc6e14
2021-07-30 17:36:05 -07:00