Commit Graph

100 Commits

Author SHA1 Message Date
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
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
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
Willem Melching
14f0df0f22 modem.Command timeout is in seconds (#22851)
* modem.Command timeout is in seconds

* getting tempts needs longer timeout
2021-11-10 16:05:27 +01:00
Adeeb Shihadeh
7c611cd711 flush progress print from agnos and neos updaters 2021-10-16 14:13:17 -07:00
Adeeb Shihadeh
d708b5b546 thermald: log screen brightness (#22570)
* thermald: log screen brightness

* bump cereal
2021-10-15 17:19:45 -07:00
Adeeb Shihadeh
5b641379ae 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>
2021-10-07 16:32:44 -07:00
Adeeb Shihadeh
493e32431c 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>
2021-10-06 20:32:22 -07:00
Adeeb Shihadeh
29b2a7d20b agnos 2 (#22390)
* agnos 2

* release notes
2021-09-30 21:56:44 -07:00
Adeeb Shihadeh
425020a849 agnos updater: support non-sparse images (#22371)
* print progress for all partitions

* noop generator

* less spammy

* cleanup
2021-09-29 11:08:19 -07:00
Robbe Derks
6117c7ce81 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>
2021-09-21 14:40:05 +02:00
Adeeb Shihadeh
745de33941 agnos 1.5 (#22147)
* agnos 1.5

* bump version
2021-09-06 20:17:37 -07:00
Adeeb Shihadeh
dde69fb933 agnos 1.4 (#22029) 2021-08-23 20:35:04 -07:00
Adeeb Shihadeh
058724e61d agnos 1.3 (#21924)
* agnos 1.3

* update updater

Co-authored-by: Comma Device <device@comma.ai>
2021-08-13 13:57:45 -07:00
Adeeb Shihadeh
3193396969 tici: set amplifier config after exiting power save (#21920) 2021-08-13 00:46:54 -07:00
Adeeb Shihadeh
589f82c766 agnos 1.2 (#21847) 2021-08-04 11:10:05 -07:00
Adeeb Shihadeh
c545dc6e14 update agnos (#21813) 2021-07-30 17:36:05 -07:00
Adeeb Shihadeh
b55d709376 update agnos (#21775)
* update agnos

* update manifest
2021-07-29 20:00:11 -07:00
Adeeb Shihadeh
060592e34a only show updater UI if necessary (#21787)
* only show updater UI if necessary

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2021-07-29 18:12:37 -07:00
Adeeb Shihadeh
6bc5566340 fix unused 2021-07-29 17:21:08 -07:00
Comma Device
56d682831b fix updater UI repaints 2021-07-29 17:12:12 -07:00
Adeeb Shihadeh
14d26d6d89 agnos updater UI (#21776)
* start agnos updater UI

* wifi

* progress

* sometimes things fail

* fix wifi

* in launch script

* fwd

* fwd stderr

* update that

* release files

Co-authored-by: Comma Device <device@comma.ai>
2021-07-29 15:57:58 -07:00
sshane
f48064c4d7 implement display power (#21731)
* implement display power

* FB_BLANK_POWERDOWN

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-28 14:26:58 -07:00
Adeeb Shihadeh
bb507dc8fe agnos 0.23 (#21740)
* agnos 0.23

* bump
2021-07-27 02:08:34 -07:00
robbederks
ec9b7833fa do not update splash partition anymore (#21727) 2021-07-26 16:35:04 -07:00
robbederks
cebddc94c4 Tici sound improvements (#21722)
* tune amp config and add EQed sounds

* fix release files

* bump up max

* cleanup

* more volume

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-26 16:28:41 -07:00
Adeeb Shihadeh
19f7cabcd1 agnos 0.22 (#21633)
* agnos 0.22

* stagign

* update
2021-07-17 14:52:50 -07:00
Willem Melching
f4d87cecf7 agnos.py: retry swap (#21608)
* retry until success

* try this

* redirect stderr

* also check positive

* add logging

* f string
2021-07-15 16:11:10 +02:00
Willem Melching
a7aa22253b Athena getNetworks method (#21597)
* add iwlist scan

* return using athena

* add lte

* add last one too

* unused

* add release files

* more compact

* typo

* remove debug code

* different file

* array

* rebase mistake
2021-07-14 16:16:45 +02:00
robbederks
cbae2899df Tici: amplifier config (#21596)
* amplifier config on boot

* add to release

* another spot

* add debug when running separately

* rename for clarity
2021-07-14 15:53:39 +02:00
Willem Melching
45d4f8301b hardware: only create dbus objects when needed (#21576)
* only create dbus objects when needed

* fix typo

* use cached_property
2021-07-13 16:22:22 +02:00
Adeeb Shihadeh
21c7981919 fix agnos updater bug + type hints (#21566)
* add type hints

* fix bug

* more hints
2021-07-12 15:22:44 -07:00
Adeeb Shihadeh
b0e3c35edd agnos 0.21 (#21559)
* agnos 0.21

* update

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-07-12 17:33:45 +02:00
Willem Melching
fb8f0ac092 cloudlog modem version (#21562)
* log modem version

* whitespace
2021-07-12 15:52:09 +02:00
Adeeb Shihadeh
266d1bdeac agnos 0.20 (#21488)
* agnos 0.20

* prod image
2021-07-06 10:32:10 -07:00
Willem Melching
7c6bf89e04 tici: flash bootloader partitions from manifest (#21399)
* move swapping to python

* only create downloader if needed

* typo

* number

* add sanity check

* boot full check to test

* manifest is required argument

* implement full hash check

* off by one

* new manifest

* only write tag for system

* bump splash

* review comments part 1

* trigger update

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
2021-06-30 14:20:58 +02:00
Willem Melching
ad7f0207ac Log gpu usage (#21404)
* Log gpu usage

* 100 total

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-29 13:55:18 -07:00
Adeeb Shihadeh
050a89e598 tici: differentiate ethernet and tethering (#21391)
* differentiate ethernet

* fix tethering

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2021-06-23 15:55:51 -07:00
Adeeb Shihadeh
687560fc98 agnos 0.19 (#21365) 2021-06-21 15:39:13 -07:00
Josh Smith
77321dbac4 Add type hints, small cleanups (#21080)
* improve tools.lib.kbhit and tools.sim.lib.keyboard_ctrl

* unpack more efficiently

* minor improvements

* agnos.py match spec better

* manual_ctrl test missing queue arg

* fix incorrect type annotation

* queues are generic

* varname reuse resulting in incorrect type inference

* bytes().hex() rather than bytes.hex(bytes())

* a bit of type hinting stuff
2021-06-03 12:21:04 +02:00
Willem Melching
57591ed3aa Agnos 0.18 (#20977) 2021-05-20 18:18:37 +02:00
Willem Melching
7a8c7505d0 add modem state to NetworkInfo 2021-05-20 14:49:59 +02:00