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
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
Willem Melching
871ecc451b
commIssueAvgFreq: separate alert for avg freq check ( #24150 )
...
* commIssueAvgFreq: separate alert for avg freq check
* bump cereal
* bump cereal
* bump cereal
* freq_ok separate from alive
* bump cereal to master
* update_ref
* fix profiler
old-commit-hash: eaa5819211
3 years ago
Adeeb Shihadeh
ec47e0fef0
break up selfdrive.config ( #23959 )
...
* break up selfdrive.config
* add to release files
* fix import order
old-commit-hash: 5c3f3e44bc
3 years ago
Dean Lee
f25f58cc53
radard.py: remove trailing space ( #23703 )
...
old-commit-hash: 414d4cae78
3 years ago
Dean Lee
a2e38be31a
radard/update: optimize capnp ( #23380 )
...
old-commit-hash: 7b612d47b6
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
Robbe Derks
b66e2a9f7a
Tesla longitudinal control ( #22561 )
...
* tesla long squashed changes
* fix no resume from stop
* try setting accel limits to 0 to remove jerk with fast switchover
* expand radard lookup tables
* bump merged panda submodule
old-commit-hash: 4960578bdf
3 years ago
Mitchell Goff
b7b87efed9
Retuned desire model ( #21919 )
...
* New model: d8e7f76f-7bec-4a83-af00-c0fae792527f/950
* Updated process replay refs
* Updated model replay ref
old-commit-hash: 05b37552f3
4 years ago
Mitchell Goff
2d0512b8a1
Revert "New desire model ( #21729 )" ( #21805 )
...
* Revert "New desire model (#21729 )"
This reverts commit 709932b3bfb4c3b4f33711b8d07615469e762832.
* Updated process replay ref and reverted release notes
old-commit-hash: 15d6bbb47c
4 years ago
Mitchell Goff
3fb1a1c746
New desire model ( #21729 )
...
* New model: b822ee32-917c-4639-99f8-25be3e6aabad/900
* Enable keeps
* use new packet
* Send keep pulses once per second
* Updated model_replay_ref_commit
* New model: 0f160bf9-1bce-43e6-9785-564b2453eeac
* Bump model_replay_ref_commit
* Bump submodules
* New model: fd904bf9-5dd8-4619-8997-c5668400e078/550
* New model: fd904bf9-5dd8-4619-8997-c5668400e078/950
* No keeps
* Bumped model replay ref
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
old-commit-hash: e83973b9b3
4 years ago
Adeeb Shihadeh
477e2e22d3
Revert model ( #21571 )
...
* Revert "New desire model (#21458 )"
This reverts commit 9db03d2a3fefff50b738d288beadc2c2e7c3165e.
* revert rel notes
old-commit-hash: 88424ede2c
4 years ago
HaraldSchafer
7fcdd04541
New desire model ( #21458 )
...
* New model: b822ee32-917c-4639-99f8-25be3e6aabad/900
* Enable keeps
* use new packet
* Send keep pulses once per second
* Updated model_replay_ref_commit
* New model: 0f160bf9-1bce-43e6-9785-564b2453eeac
* Bump model_replay_ref_commit
Co-authored-by: mitchell <mitchellgoffpc@gmail.com>
old-commit-hash: 4230d5d212
4 years ago
Willem Melching
811746959e
tici: move real-time processes to high-performance cores ( #20634 )
...
old-commit-hash: 8ede1b30aa
4 years ago
Willem Melching
99a8e9222e
Add list for average frequency ignore ( #20624 )
...
* add list for averge frequency ignore
* typo
old-commit-hash: c1075037ba
4 years ago
Willem Melching
15c06d1c06
Check average frequency in SubMaster ( #20558 )
...
old-commit-hash: 79b5bee9dd
4 years ago
Adeeb Shihadeh
966945880b
Cereal cleanup ( #20003 )
...
* start cleanup
* fan speed
* cleanup dm
* fix cereal
* hwType -> pandaType
* update refs
* update refs
* bump cereal
* freeSpacePercent
* cereal master
old-commit-hash: 000bd226aa
4 years ago
HaraldSchafer
5c2c6691b2
remove old model packet ( #19769 )
...
* remove publisher
* move to V2
* radard new model
* fix plant
* change packety
* need hack here too
* change to new
* this has been wrong all along
* no more model msg
* subscribe to new model
* not needed anymore
* make work
* need to ignore that too
* should pass tests, needs car test
* fix process replay
* no more poly
* update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 124100d0fa
4 years ago
Adeeb Shihadeh
af2ec63bea
radard cleanup ( #2266 )
...
* some cleanup
* more realistic profiling
* Update selfdrive/controls/radard.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a77548bff6
5 years ago
Adeeb Shihadeh
ff14d71845
Run all driving processes on cores 2-3 ( #2257 )
...
old-commit-hash: 059cf6b43e
5 years ago
Greg Hogan
659b82c469
pre-reqs for honda bosch longitudinal control ( #1458 )
...
* pre-reqs for honda bosch longitudinal control
* openpilot_longitudinal_control -> radar_disabled
* fix chrysler test
* review feedback
* little cleaner
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0902575e34
5 years ago
Adeeb Shihadeh
bdf52941c8
Improve realtime performance on NEOS ( #2166 )
...
* fix setting core affinity
* dmonitoringd doesn't need rt priority
* android only gets two cores
* model and planner get core 2
* log missed cycle count
* neos update
* prod image
* revert NEOS changes
* still need this
old-commit-hash: ef21b83937
5 years ago
Jason Young
ebed52527b
Reduce scheduler latency for realtime processes ( #1638 )
...
* WIP: reduce boardd and other lags
* Copypasta fault
* Silence spurious startup warning
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 68531b071c
5 years ago
Adeeb Shihadeh
9823f1164c
enable flake8 E303: too many blank lines
...
old-commit-hash: f3dcf861c7
5 years ago
HaraldSchafer
3488486258
Minor fixes ( #1571 )
...
* was 5 seconds not .2!
* threshold for moving car highers, this can give FPw
old-commit-hash: 67017d69fe
5 years ago
Adeeb Shihadeh
6f0c5834e7
Fix blank mdMonoTime and controlsStateMonoTime in radard
...
old-commit-hash: 2ecc7d9f6f
5 years ago
Shane Smiskol
682c866a55
initialize all messages in 1 line ( #1206 )
...
old-commit-hash: 6ff881f789
5 years ago
George Hotz
079eee7294
selfdrive/controls
...
old-commit-hash: b0260dadba
5 years ago
George Hotz
81dd5a50cf
root commit
...
old-commit-hash: 6c33a5c1f3
5 years ago
Vehicle Researcher
99b637c7ce
openpilot v0.7 release
...
old-commit-hash: c025b96e8a
5 years ago
Vehicle Researcher
b713eae9f8
openpilot v0.6.6 release
...
old-commit-hash: d7f0b402a8
6 years ago
Vehicle Researcher
89d1d84c70
openpilot v0.6.5 release
...
old-commit-hash: cf80f7a28b
6 years ago
Vehicle Researcher
dfe603c178
openpilot v0.6.4 release
...
old-commit-hash: 61229779e4
6 years ago
Vehicle Researcher
02cedeadd9
openpilot v0.6.3 release
...
old-commit-hash: d5f9caa82d
6 years ago
Vehicle Researcher
3835061760
openpilot v0.6.2 release
...
old-commit-hash: e90c41c576
6 years ago
Vehicle Researcher
07aa8b1bf3
openpilot v0.6.1 release
...
old-commit-hash: 94053536b4
6 years ago
Vehicle Researcher
9abcfabc5f
openpilot v0.6 release
...
old-commit-hash: 8a9ed94f5f
6 years ago
Vehicle Researcher
e47a2e6e30
openpilot v0.5.13 release
...
old-commit-hash: dd34ccfe28
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
30f7a33535
openpilot v0.5.10 release
...
old-commit-hash: f74a201edc
6 years ago
Vehicle Researcher
2cc4edde68
openpilot v0.5.9 release
...
old-commit-hash: 0207a97040
6 years ago
Vehicle Researcher
3bde47d556
openpilot v0.5.8 release
...
old-commit-hash: b967da5fc1
6 years ago
Vehicle Researcher
fdbf213be8
openpilot v0.5.6 release
...
old-commit-hash: 860a48765d
7 years ago
Vehicle Researcher
86d4bbcba6
openpilot v0.5.1 release
...
old-commit-hash: 6f3d10a4c4
7 years ago
Vehicle Researcher
e41a943dd0
openpilot v0.5 release
...
old-commit-hash: de33bc4645
7 years ago
Vehicle Researcher
242328f92c
openpilot v0.4.7 release
...
old-commit-hash: ae5cb7a0da
7 years ago
Vehicle Researcher
8fc7b0b828
openpilot v0.4.6 release
...
old-commit-hash: c6df34f55b
7 years ago
Vehicle Researcher
df22dac4f6
openpilot v0.4.3 release
...
old-commit-hash: 9a411ebf32
7 years ago
Vehicle Researcher
4e867831f7
openpilot v0.4.2 release
...
old-commit-hash: 28c0797d30
7 years ago