Adeeb Shihadeh
4c68149cb0
updated: run lfs prune ( #25729 )
...
old-commit-hash: f2d9ecb08a
3 years ago
Adeeb Shihadeh
d9c279aea9
params: make python and c++ API match ( #25573 )
...
* params: make python and c++ API match
* few more
old-commit-hash: 90a4565eb2
3 years ago
Shane Smiskol
58c7b65b78
Fix release tests
...
old-commit-hash: 758069464c
3 years ago
Adeeb Shihadeh
95df2c9b48
updated: add branch switching ( #25200 )
...
* switch param
* add to ui
* fix that
* fetch for new branch
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: cc3857eb62
3 years ago
Adeeb Shihadeh
3c48bc47b7
Move a bunch of stuff to system/ part 3 ( #24829 )
...
* move swaglog.py
* timezoned
* logmessaged
* version.py
* fix linter
old-commit-hash: 0fce5d9045
3 years ago
Adeeb Shihadeh
9a45a3b99b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
old-commit-hash: 1139fe507b
3 years ago
Willem Melching
753045c73d
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>
old-commit-hash: f49a9c9fd2
3 years ago
Adeeb Shihadeh
d33afc2cac
remove custom markdown rendering ( #24538 )
...
* remove custom markdown rendering
* remove from release
old-commit-hash: 222c7cd60d
3 years ago
Dylan Herman
2dfba97175
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>
old-commit-hash: d2eef1955c
3 years ago
Adeeb Shihadeh
66065b527b
updated: reduce frequency of unnecessary updates ( #24301 )
...
* updated: reduce frequency of unnecessary updates
* little cleanup
old-commit-hash: e8a9b9ed8c
3 years ago
Willem Melching
b9fb3cb647
updated: only run offroad & disable automatic git garbage collection ( #24269 )
...
* updated: disable automatic git garbage collection
* set gc.autoDetach false
* add gc cloudlogs
* trigger updated
* handle exception
* trigger updated
* only while offroad
* no trigger needed
* trigger updated
* check if git gc was interrupted
* trigger updated
* dont set params when shutting down
* let manager clear params
* no offroad check anymore
* event is nicer to parse
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3063c70ff1
3 years ago
Adeeb Shihadeh
5a9644261f
remove comma two support ( #24248 )
...
* remove comma two support
* cleanup release files
* little more
* more libs
* no more gralloc
* add snpe back
old-commit-hash: 5c48e7bc86
3 years ago
Willem Melching
5a420cb9e6
updated: reduce data usage ( #24204 )
...
* reduce updated data usage
* Update selfdrive/updated.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0b2b1f3e56
3 years ago
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
3 years ago
Ewout ter Hoeven
f206ebd054
Pyupgrade 3.6: Update syntax with Python 3.6+ features ( #23305 )
...
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
old-commit-hash: 332f568a82
3 years ago
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
3 years ago
Shane Smiskol
ef38c36435
version.py: make function names more clear ( #23216 )
...
* rename a few version functions
* and is_prebuilt
* and some formatting 😊
old-commit-hash: b745a14ff7
3 years ago
Adeeb Shihadeh
db8e512ee5
updated: handle execptions while setting params
...
old-commit-hash: c6d3306dbe
3 years ago
Adeeb Shihadeh
fc641646ed
updated: move update alerts out of thermald ( #23028 )
...
* updated: move update alerts out of thermald
* cleanup last update time
* set on startup
old-commit-hash: b79eaca18d
3 years ago
Mayfield
72c892e014
ui: render markdown in release notes ( #22754 )
...
* convert release notes from markdown to html
* fall back to previous behavior if utf8 decoding or markdown parsing throws
* make simple markdown parser to avoid needing a library
* add unit test
* move markdown parser to common. add unit test
use `markdown-it-py` instead of `markdown` dependency for test comparison since it's already in Pipfile.lock
* test (almost) all release notes and add some extra html encoding
* update lock
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1aebe6ff6e
4 years ago
Adeeb Shihadeh
104ba7be84
updated: add a few missing type hints
...
old-commit-hash: 9ca16560e2
4 years ago
Adeeb Shihadeh
47a983fb00
updated: add persistent param for build date ( #22237 )
...
old-commit-hash: ed70c5aaf5
4 years ago
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
4 years ago
Adeeb Shihadeh
ef7b6016b1
updated: move final git reset before finalizing update ( #22168 )
...
old-commit-hash: d4b4204233
4 years ago
Adeeb Shihadeh
8b512c4b75
updated: log successful update swap ( #22144 )
...
old-commit-hash: da1aa27046
4 years ago
Adeeb Shihadeh
8b8e77575c
fix crash due to permissions when clearing update staging dir ( #21790 )
...
old-commit-hash: 3a7444250c
4 years ago
Adeeb Shihadeh
57cc915aa9
updated: clear overlay on exception ( #21489 )
...
old-commit-hash: a44072753d
4 years ago
Willem Melching
c8810406da
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>
old-commit-hash: 7c6bf89e04
4 years ago
Adeeb Shihadeh
e56a6919bd
fixup release build ( #21430 )
...
* fixup release3 build
* works on pc
* install release3
* push dashcam
* only import on tici
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 49d96f0acc
4 years ago
Willem Melching
33a3bb5fc9
Revert "tici: always run updated ( #21249 )"
...
This reverts commit 60ba93bd1be24e022552da1545dca9b61d2584b7.
old-commit-hash: 715dbd4882
4 years ago
Adeeb Shihadeh
e07f1a1ee4
tici: always run updated ( #21249 )
...
old-commit-hash: 4dfdf0e51d
4 years ago
Adeeb Shihadeh
f53936f904
Revert "updated: fix surfacing exceptions and errors ( #20754 )"
...
This reverts commit 07006949d3734b433a8b9de60440523f5e760d88.
old-commit-hash: 967489bdaa
4 years ago
Adeeb Shihadeh
f69e234419
updated: fix surfacing exceptions and errors ( #20754 )
...
* updated: fix surfacing exceptions and errors
* can't rely on that
* unused
* ugh pylint
* try this
* this makes pylint happy
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 3c9e46d8a2
4 years ago
Willem Melching
8f4a445171
add putBool/getBool wrappers to cython params class ( #20611 )
...
* add putBool/getBool wrappers to cython class
* use new API
* some more puts
* fix mockparams arguments
* add get_bool to MockParams
* typo
old-commit-hash: ae094042ad
4 years ago
Adeeb Shihadeh
0d5dec9276
updated: log git diff on overlay init ( #20476 )
...
* updated: log git diff on overlay init
* add git diff param
* params
old-commit-hash: bcb6879199
4 years ago
Adeeb Shihadeh
8866942686
offroad alert for agnos update ( #20270 )
...
old-commit-hash: 6e101fd691
4 years ago
Adeeb Shihadeh
6dbc7c6d92
oneplus cleanup ( #20200 )
...
* start cleanup
* cleanup camerad
* remove unused
* little more
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 07ab081a42
4 years ago
Adeeb Shihadeh
ec468f88c9
move agnos manifest to selfdrive/hardware ( #19889 )
...
old-commit-hash: cfb0390183
4 years ago
Adeeb Shihadeh
933f2952bd
fix updated bug that allows for mismatch openpilot/agnos ( #19943 )
...
old-commit-hash: 09ee2a8c51
4 years ago
Adeeb Shihadeh
349429836c
agnos updater ( #2600 )
...
* agnos updater
* add manifest
* fix path
* get manifest from overlay
* update manifest
* remove merge markers
* add streaming decompressor
* dont need read all
* Unsparsify
* Fix output filename
* Optimization
* cleanup
* Small cleanup
* Read manifest from merged overlay
* Write hash at end of partition
* Sync before writing hash
* Write bytes in file
* add manifest with image sizes
* Fix manifest path
* File was closed already
* Format string
* Put raw hash
* Read hashes in launch script
* update launch script
* should be agnos version
* fix slot
* Make sure we clear the hash
* Verify partition size
* move updated
* Standalone flasher
* Don't rely on ordering
* Get path
* Debug log
* Download agnos
* Info is enough
* update manifest
* Remove f
* Check downloader return code
* Exit on wrong manifest
* Fix typos
* Set pythonpath before hardware init
* move agnos into hardware folder
* remove comments
* Fix abstractmethod
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b276881fcd
4 years ago
Adeeb Shihadeh
804f08f593
disable updater for oneplus EONs
...
old-commit-hash: 40a4bd9fc7
4 years ago
Adeeb Shihadeh
b950cab874
HW abstraction layer ( #19530 )
...
* start hw refactor
* move that
* pins
* put that back
old-commit-hash: 8674b023ba
4 years ago
Adeeb Shihadeh
f359b4cf49
remove fsck logging in updated
...
old-commit-hash: 238ac19ba9
4 years ago
Adeeb Shihadeh
3e6abdd8bd
oneplus deprecation ( #2748 )
...
* oneplus deprecation
* lowercase
* too long
* no udpates
old-commit-hash: 6a151dcd9c
4 years ago
Adeeb Shihadeh
d05c8e2a08
Tici updated ( #2126 )
...
* run updated on tici
* do this for now
* two didn't like empty string
* fix permissions
old-commit-hash: 38ded9b1e7
5 years ago
Adeeb Shihadeh
9bb39d1145
updated: remove old overlay init file
...
old-commit-hash: 2a2cfd6bb5
5 years ago
Adeeb Shihadeh
c23faac9df
updated: log git corruption ( #2242 )
...
* log git corruption
* better cloudlog
old-commit-hash: 3f40a9ee75
5 years ago
Adeeb Shihadeh
12b7a29d06
Improved updater robustness ( #2046 )
...
* git ping
* cleanup overlay init
* separate update available check from fetch
* cleanup setting params
* only fetch neos update on android
* move that
* type hints
* lightweight update check with git ls-remote
* git fetch dry run
* cleanup
old-commit-hash: 722a440eb6
5 years ago
Greg Hogan
d200f048b7
fix pylint errors
...
old-commit-hash: 1e6c7c94e4
5 years ago
Adeeb Shihadeh
b2e40a7487
remove dead code in updated
...
old-commit-hash: 21a1792f89
5 years ago