* clean up CarController with intermediate variables only accessed once or twice
* format
* fixes and move frame to CarController
old-commit-hash: facf6c109d
* 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
* Fine tune Prius-V control parameter
* Adjust DBC file and enable SNG support
*Adjust the DBC file to CT200H, the parameters of this model are closer to PRIUS V
*Add PRIUS V to NO_STOP_TIMER_CAR list to enable SNG support
* Update interface.py
remove spaces
* Update values.py
Mod DBC to toyota_rav4_2017_pt_generated
* Update values.py
The file has been updated to resolve the conflict and can be directly merged
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: eaebf01e58
* use scaling
* or we can do it this way
* define default in one place
* just specify
* Revert "just specify"
This reverts commit 40b7b28f84.
old-commit-hash: 3c62d9da09
* 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
* 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
* Add f/w firmware for Lexus RC under LEXUS_IS
`@ph33rl355#0529` 2020 Lexus RC F Track Edition DongleID/route 32696cea52831b02|2021-11-16--23-12-02
Doesn't seem to need a full port, per user feedback...
https://discord.com/channels/469524606043160576/524327905937850394/910400788319326229
* Update CARS.md
* Separated Lexus RC from IS... still using IS DBC
* match lexus IS for now
* Update wheelbase to match published specs
I'm hesitant to touch `mass`, even though I know it's different from the IS.
* Add TOYOTA.LEXUS_RC test route
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d630ec9092
* use ISO 15622:2018 limits in PID controller
* allow more for nidec
* limit PID inputs
* CP is not needed
* add GM
* not used
* update ref
* fix honda bosch
old-commit-hash: f941111dcd
* retune civic
* seems smooth
* back to normal
* new ref
* fix conflict
* runs
* rm
* accel scale is 4
* toyota should be good
* more cleanup
* fixup
* better naming
* update ref
* deprecated
* sending brake when not enable causes a fault
* rm gas and brake
* unused
* update ref
* acura logic is no more
* wrong before
* revert tuning cleanup
* adress comments
* update ref
* already on master
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1ac89f14aa
Split tuning on eps fwVersion \x02 only. See https://github.com/commaai/openpilot/pull/21429#issuecomment-873652891 for findings.
Unify Rav4 & Rav4 Hybrid
Average mass between ICE & Hybrid
Co-Authored-By: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: f40e75edf8
* hyundai has full brake control
* set default stoppingControl to True
* update ref
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 8071111f59
* pedal improvements
* pedal tuning under 19 mph, stock tuning above
* Correctly set tuning, and a temporary reference script
* looking good
* use minEnableSpeed
* minEnableSpeed will always be -1 if pedal since it's used for lockout
* add hysteresis around 19 mph for enabling pedal use
* parameterize minAccSpeed (enable speed is -1 when stop and go to allow engage, acc is min limit for acc commands)
* fix Prius later, 5 mph gap around switch speed
* define min_acc_speed in interface and CC
* use pedal gains up to 22 mph, and correctly use hysteresis above the switch speed
* only check this if pedal
* consolidate comment
* Change BP to switch tuning at 19 mph, define global constant
* Start at interceptor status
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* update releases
* typo
* transition tuning from 19 to +3 mph
* change cmd names and update tuning comment
* Update RELEASES.md
* calculate new pedal gains
* little more clear
* even clearer
* same comment convention and hardcode new pedal tune
* bump cereal
* weird, got added in with the rebase
* three possible long tunings: pedal, improved non-pedal, and default non-pedal
* update refs
* future note: don't add submodules when rebasing!
* update refs
* update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ebc294296a
* start to separate Avalon 2019+
* reverts #20824 (2020)...
and removes fw from a 2020 avalon
* revert 2020 fw from #20241
* revert 2021 fw from #19790
* bump opendbc, add smartDsu
* Add only removed fw from listed PRs above and from jryan's 2020
* bump opendbc to master
* comment out any non-original avalon fw
* new fw
* these 2016 (5 byte EPS_STATUS msg) Avalon fws are correct. comment out any 2019+ fw I haven't seen yet
* Add to release files
* these are good too
* nothing on 7e0 yet
* both have their engines on one address
* validated remaining fws! some from adeeb's, chris's, and kumar's PRs
* Add test route for Avalon 2019
* horrible
* Duplicate
* use nodsu dbc. Only difference is the addition of some signals that don't work, and max of BRAKE_PRESSURE is different
* Enablem 2019 Avalon test route
old-commit-hash: 07e4129edc
* adding port for 2019 lexus ux 250h
* update README
* added route to test_routes
* added CAR.LEXUS_UXH_TSS2 to IGNORED_FINGERPRINTS
changed test route to a complete route (that will be uploaded)
* unused
* add fw
* forgot h
Co-authored-by: Brian Haugen <brian.haugen@toyota.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6089c95a35
* Toyota: use FW query for DSU detection
* make sure we have at least some fw responses
* bool
* add test to test_startup
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a19d94ae2d