* proof of concept
* actuators packet describes which actuators are active
* bump cereal
* fixes
* not needed for this PR
* Do Toyota
* add back controlsState.active
* bump cereal
* rest of cars
* in actuators
* add active back
* which
* use controlsState.active for now
* will make an issue
* Update selfdrive/controls/controlsd.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* move local lat_active checks into CC.latActive
* remove redundant checks
* move comment
move comment
* fix joystick mode
* get enabled from carcontrol
* do standstill check in controlsd
* make sure we consider the gas press case for GM
* use CC.actuators
* fix
* capitalization
* Bump cereal
Bump cereal
* make intermediate actuators
* similar convention to before
* clean that up
* update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 629399a449
* or brake_switch
* remove car exceptions
* Revert "remove car exceptions"
This reverts commit cad6a552aa4a17c69616014d3e9333d30c1fadd3.
* does have ts noise, use updated
* bump panda for tests
* bump
* messsssy draft
* clean up
* clean up
* bump
* CS: process all messages at once, like we do during real openpilot usage
* handle multiple messages updated in one cycle
* bump
* bump
* use less confusing, but equivalent cp.vl
* Update selfdrive/test/test_models.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* no msg
* bump opendbc
* Update selfdrive/car/honda/carstate.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* same test logic
* add brake_switch_prev to class
* need to set previous brake switch when not lagging (most of the time)
* need to compare
* only update previous if updated this cycle
rm
* need to maintain previous active state
* move brake_switch
* bump opendbc
* bump
* bump
* bump
* bump
* bump
* bump
* bump opendbc
* rename
* oops
* bump opendbc
* bump
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 209bfe536b
* check in tuple instead of list
* Update selfdrive/car/toyota/carcontroller.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* Update selfdrive/car/mazda/interface.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a653461dec
* remove starting state
* new ref
* ready for merge
* try this
* cereal now on master
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
old-commit-hash: cf9792dc53
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
* 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
* add CarParams.wheelSpeedFactor
* Fudge speed for Lexus RX
* should have been the TSS2 model
* bump cereal
* refactor into function
* update refs
old-commit-hash: e6180738fd
* disallow engagement if brake hold active
* we can check once
* move to common events
revert
* fix
* update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a0e5eccb70
* update values.py
* add passport to carstate, interface, values
* add a test route with mostly green
* switch to newer route
* update readme
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 28e16c7b84
* revert changes to standstill logic
* start with mostly open loop
* Revert "revert changes to standstill logic"
This reverts commit d737d858e7708aedaf09cfc068b85398161e9bbe.
* proper clipping
* less lag
* less gas command
* start gas from -0.2
* controls should take care of that
* use CarControllerParams
* switch to braking sooner
* Revert "switch to braking sooner"
This reverts commit cf11dae334ccb369f625d4b13b7cd4176156a446.
* 2.5x more P
* use active
* engage on rising edge
* Revert "engage on rising edge"
This reverts commit c972956cb4.
* update ref
old-commit-hash: 6c29a4c7fb