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
Adeeb Shihadeh
c2b1d97b20
NEOS background updater ( #1892 )
...
old-commit-hash: cb5a2996e7
5 years ago
Adeeb Shihadeh
dde753d531
fix linter
...
old-commit-hash: 60e2267f02
5 years ago
Adeeb Shihadeh
017b084154
Alert when updated consistently fails ( #2013 )
...
* alert when update fails more than 10 times
* bring over offroad alert refactor from other branch
* and we have tests
* use it in snapshot
* bump apk
* don't show exceptions on release branches
* only write when changed
* why does delete use so much cpu
* clean that up
* little more
old-commit-hash: 8e63f06540
5 years ago
Adeeb Shihadeh
3dccc7fc2e
Updater tests ( #1974 )
...
* refactor exit handling
* test update
* more reliable?
* better
* init git in CI
* testy tester
* CI should work
* test overlay reinit
* only one
* still need to fix loop test
* more patience
* more patience in CI
* no ping in CI
* this is cleaner
* need to run these in jenkins
* clean up
* run in jenkins
* fix test file path
* it's a git repo now
* no commit
* reinit
* remove duplicate
* why not git
* la
* git status
* pythonpath
* fix
* no CI fro now
* check overlay consistent
* more tests
* make more changes in the update commit
* sample
* no k
old-commit-hash: fe18a014c7
5 years ago
Adeeb Shihadeh
792b74f543
Improve update reliability and responsiveness ( #1986 )
...
* handle orphaned git lock
* trigger update after going offroad
* git ping
old-commit-hash: a115366ddd
5 years ago
Adeeb Shihadeh
b5fa861871
Cleanup updated ( #1981 )
...
* remove dead code from updated
* no short
* simpler
* simplify that
* move that into the class
* little more
old-commit-hash: f61dcb6e12
5 years ago
Adeeb Shihadeh
0b64a13bc9
improve updated responsiveness ( #1973 )
...
old-commit-hash: 88c67e7e9f
5 years ago
Adeeb Shihadeh
05628116ee
fix blocking sleep in updated ( #1860 )
...
old-commit-hash: 62a94eb0cd
5 years ago
Jason Young
2b60599543
Make updated more resilient ( #1853 )
...
* Add sleep at updated startup
* Mitigate symlink-related FS damage
old-commit-hash: c43df81214
5 years ago
George Hotz
70dbce450c
Add an SSH param to disable updates ( #1807 )
...
* disable updates with optional param
* dont create the alert
* Revert "dont create the alert"
This reverts commit 7179a6c8b4
.
* keep alert, but allow engagement
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: cb495bb8c9
5 years ago
Adeeb
9027018368
Update Flake8 config ( #1624 )
...
* update flake8 checks
* add E502
* no whitespace warnings
* fix violations
* no W391
Co-authored-by: Jason Young <jason@comma.ai>
old-commit-hash: 367155168a
5 years ago
Willem Melching
a56e2b01f8
Make pylint more strict ( #1626 )
...
* make pylint more strict
* cleanup in progress
* done cleaning up
* no opendbc
old-commit-hash: 843a64c72f
5 years ago
Willem Melching
36e26ce381
updater read git config first ( #1376 )
...
old-commit-hash: 0418da517a
5 years ago
Andy
a1c67df499
Replace usages of datetime.now() with datetime.utcnow() ( #1267 )
...
old-commit-hash: 54f34abdb3
5 years ago
Adeeb
65a2c62114
Abstract common events + event cleanup ( #1129 )
...
* too many if
* unused
* whitespace
* key
* sefldrive/car/*
* no more gctx
* lower
* start abstracting common events
* all cars
* start small
* all cars
* reverse gear
* wrongCarMode
* wrongGear
* espDisabled
* steerUnvailable
* make linter happy
* c isn't used
* fix esp_disabled in VW
* update ref
* more red
* more cleanup
* fix subaru
* update ref
old-commit-hash: e8cb6ea06a
5 years ago
Willem Melching
8611b1b648
Only show update alert if updater failed once since reboot ( #1078 )
...
* Only show update alert if updater failed
* no negetive days in warning message
* Also increase failed count when no internet
* Only set count to zero on actual update
* First run always fails because IsOffroad is not set yet
old-commit-hash: a5bd1d2a88
5 years ago
George Hotz
a7fa20b566
selfdrive/*.py
...
old-commit-hash: 2f9379a139
5 years ago
George Hotz
81dd5a50cf
root commit
...
old-commit-hash: 6c33a5c1f3
5 years ago
Vehicle Researcher
fa4b6f33d1
openpilot v0.7.1 release
...
old-commit-hash: 8da8b6135c
5 years ago
Vehicle Researcher
99b637c7ce
openpilot v0.7 release
...
old-commit-hash: c025b96e8a
5 years ago
Vehicle Researcher
89d1d84c70
openpilot v0.6.5 release
...
old-commit-hash: cf80f7a28b
6 years ago
Drew Hintz
3ad68e4378
getting ready for Python 3 ( #619 )
...
* tabs to spaces
python 2 to 3: https://portingguide.readthedocs.io/en/latest/syntax.html#tabs-and-spaces
* use the new except syntax
python 2 to 3: https://portingguide.readthedocs.io/en/latest/exceptions.html#the-new-except-syntax
* make relative imports absolute
python 2 to 3: https://portingguide.readthedocs.io/en/latest/imports.html#absolute-imports
* Queue renamed to queue in python 3
Use the six compatibility library to support both python 2 and 3: https://portingguide.readthedocs.io/en/latest/stdlib-reorg.html#renamed-modules
* replace dict.has_key() with in
python 2 to 3: https://portingguide.readthedocs.io/en/latest/dicts.html#removed-dict-has-key
* make dict views compatible with python 3
python 2 to 3: https://portingguide.readthedocs.io/en/latest/dicts.html#dict-views-and-iterators
Where needed, wrapping things that will be a view in python 3 with a list(). For example, if it's accessed with []
Python 3 has no iter*() methods, so just using the values() instead of itervalues() as long as it's not too performance intensive. Note that any minor performance hit of using a list instead of a view will go away when switching to python 3. If it is intensive, we could use the six version.
* Explicitly use truncating division
python 2 to 3: https://portingguide.readthedocs.io/en/latest/numbers.html#division
python 3 treats / as float division. When we want the result to be an integer, use //
* replace map() with list comprehension where a list result is needed.
In python 3, map() returns an iterator.
python 2 to 3: https://portingguide.readthedocs.io/en/latest/iterators.html#new-behavior-of-map-and-filter
* replace filter() with list comprehension
In python 3, filter() returns an interatoooooooooooor.
python 2 to 3: https://portingguide.readthedocs.io/en/latest/iterators.html#new-behavior-of-map-and-filter
* wrap zip() in list() where we need the result to be a list
python 2 to 3: https://portingguide.readthedocs.io/en/latest/iterators.html#new-behavior-of-zip
* clean out some lint
Removes these pylint warnings:
************* Module selfdrive.car.chrysler.chryslercan
W: 15, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 16, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 25, 0: Unnecessary semicolon (unnecessary-semicolon)
************* Module common.dbc
W:101, 0: Anomalous backslash in string: '\?'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
************* Module selfdrive.car.gm.interface
R:102, 6: Redefinition of ret.minEnableSpeed type from float to int (redefined-variable-type)
R:103, 6: Redefinition of ret.mass type from int to float (redefined-variable-type)
************* Module selfdrive.updated
R: 20, 6: Redefinition of r type from int to str (redefined-variable-type)
old-commit-hash: 9dae0bfac4
6 years ago
Vehicle Researcher
e41a943dd0
openpilot v0.5 release
...
old-commit-hash: de33bc4645
7 years ago
Vehicle Researcher
405e7c1b02
openpilot v0.4.7.2 release
...
old-commit-hash: 95509a58cd
7 years ago
Vehicle Researcher
cd558d30d1
openpilot v0.4.3.2 release
...
old-commit-hash: 78df63a6af
7 years ago
Vehicle Researcher
df22dac4f6
openpilot v0.4.3 release
...
old-commit-hash: 9a411ebf32
7 years ago
Vehicle Researcher
e147663381
openpilot v0.4.0.1 tweaks
...
old-commit-hash: 7ef3fd567f
7 years ago
Vehicle Researcher
d9578e2f8e
openpilot v0.4.0.1 release
...
old-commit-hash: a77c0a1098
7 years ago
Vehicle Researcher
81ebf6b142
openpilot v0.3.8.2 release
...
old-commit-hash: 187a70f760
8 years ago