* draft
* clean up
* there was a bug, need to subtract from last_angle essentially
* Revert "there was a bug, need to subtract from last_angle essentially"
This reverts commit a595e4af64.
* maybe
* Revert "maybe"
This reverts commit cc96523cc2.
* or can do this
* this seems simpler and actually would work
* update comment
* fix that case
* joystick testing
* revert testing changes
* comment should be more clear
* can have full thing
* bump panda to lta
* revert cc
* this seems to work well
* constants
* try setme_x64
* 99 just winds up torque?!
* try less torque
* add corolla
* clean up
* clean up
* clean up
* clean up
* better name
* -which
* fix
* fix typo
* use params
old-commit-hash: c01ba907c0
* use class params
* combine limiting, logic to create commands, and creating commands into one place
* remove super old debugging comment
* log angle
* Revert "log angle"
This reverts commit f5b763c59a.
* add headers
old-commit-hash: 11494118e8
* test out lta message
* correctly send
* percentage is percentage driver isn't overriding
* closer to stock system
* should be able to send LTA at 100hz, counter is the same as LKA
* small amount of torque towards desired
* Offset commanded torque correctly
* Too little torque
* use car's SETME's
* Revert "use car's SETME's"
This reverts commit c888569699.
* try cutting steer every second
* Didn't seem to matter
This reverts commit 6923498b2a.
* steer to 0
* let packer set counter
* add for camry
* log steer faults
* comments
* bump opendbc
* add opParams
* add lta safety
* set safety param
* fix torque control bug
* bump panda
* fix missing signal
* [experiment] apply some rate limiting and anti-windup
* no faults, clip to 90 deg, decent torque blending
* clean up blending
* toyota angle rate limits
* use std angle limits
* assert we only add angle control to TSS2 cars
* clean up carcontroller a bit
* space space
* bump opendbc
* clean up toyotacan from opendbc change
* bump panda
* will tests run?
* steer at zero
* refactor angle to use LatControlPID with zero gains
* stop some faults and tuning
* possibly fix integral wind up at max torque
* Add 2023 rav4
* limit torque inside EPS when overriding (no huge windup in edge cases when overriding)
* fix wind up issue after turns (or prolonged saturation)
* this doesn't work that well
* try these limits
* try this
* log the angle!
* global variable
* Apply suggestions from code review
* clip angle to 3 m/s/s
* some tolerance for roll
* raise limits a bit
* bumppanda
* fix faults
* still not good
* offsetting causing hugging?
* Revert "offsetting causing hugging?"
This reverts commit a42ec0b772.
* reduce kp
* class var not needed
* limit up angle delta
* fix saturation check
* feedforward includes offset
* some threshold for roll
* bump panda
* surely we don't need this
* test stuff
* Toyota: Add FW for 2023 RAV4 Hybrid (#27494)
* Toyota: Add FW for 2023 RAV4 Hybrid
* Set RAVH_TSS2_2022 to use angle SteerControlType
* bump panda
* remove extras
* Revert "remove extras"
This reverts commit 87378e7349.
* no max angle limit for now
* add as separate platforms
* remove debug scripts
* revert to master
* remove these FW versions from 2022
* dashcam these cars :(
* fix test
* interface
* add to untested routes
* never send torque with LTA cars
* fix values
* clean up controlsd
* reset lat control files
* use the car param
* add to params
* bump panda to master
* Update selfdrive/car/toyota/carcontroller.py
* don't set torque params if angle control (fixes controlsd bug)
* reset controlsd
* keyword
* in another pr
* simplify test
* rm line
* Update selfdrive/car/toyota/tests/test_toyota.py
---------
Co-authored-by: crispbee <84819466+crispbee@users.noreply.github.com>
old-commit-hash: 57c4d78869
* rename function
* make a wrapper function (ford uses dynamic up/down limits
* make two functions consistent
* make torque function convert to int
old-commit-hash: 581fd62d26
* draft
* bump opendbc
* still draft
* that's not right
* superset of the changes, 33hz
* cleanup
* this should work
* remove line
* pass it in again
* actually no need to check updated now
* now_nanos
* consistent name
* fix replay
* one line isn't that bad
switch
switch
* fix CarController tests
* Update ref_commit
old-commit-hash: 8f5057ff2d
* Toyota: pass through sway warning system signals
* signal doesn't seem to exist on the Prius V
bad log?
* remove duplicated checks
* syntax
* Revert "syntax"
This reverts commit 6c30c30d46.
* Revert "remove duplicated checks"
This reverts commit 6a364984eb.
* Revert "signal doesn't seem to exist on the Prius V"
This reverts commit 57fa571fde.
* Revert "Revert "signal doesn't seem to exist on the Prius V""
This reverts commit 9b1c3f6cac.
* Revert "Revert "remove duplicated checks""
This reverts commit 38bc7f3de6.
* Revert "Revert "syntax""
This reverts commit f81f93631f.
* hard code values for Prius V
* send ui once every 25 frames
remove send ui logic
* send UI immediately on pcm_cancel_cmd
* draft
* clean that up
* same order as toyotacan
* update refs
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 2f80580fee
* note for dsu cars
* don't hardcode dsu footnote (1/2)
* test
* revert the experimental long toggle
* another day:(
* DSU doesn't have to be toyota specific, it's a generic carParam!
* this is safe, just make sure it's unknown
* these cars do not have OP long for some reason
* UNSUPPORTED_DSU_CAR
* forgot this
* .
* .
* revert
* revert
* smaller diff
old-commit-hash: b0656f2c75
* try a method to kill those faults
* cut torque for 1 frame
* sign doesn't seem to matter
* clean up
* better name
* Toyota allows you to keep your apply_steer, better control
* the logic was wrong entire time?
* cut steer for two frames
* Revert "cut steer for two frames"
This reverts commit 13a68ecc56.
* better variable names and comments
better variable names and comments
* should be good
* add safety
* actual number of frames
* constant
* bump panda
* bump panda
* bump panda
* bump panda
* bump panda
* bump panda
* bump panda
* fix to use min valid frames
* rm line
* simplify check
* bump panda
* bump panda to master
old-commit-hash: 50d117ed9a
* Toyota: fill steerFaultPermanent
* same behavior as before, 0 is also fault (0 is most likely initializing)
* think this was just wrong (2 or 10 would mean we think it's a fault)
old-commit-hash: c955e273d4
* Initial commit
* Fix bugs
* Need more torque rate
* Cleanup cray cray control
* Write nicely
* Chiiil
* Not relevant for cray cray control
* Do some logging
* Seems like it has more torque than I thought
* Bit more feedforward
* Tune change
* Retune
* Retune
* Little more chill
* Add coroll
* Add corolla
* Give craycray a good name
* Update to proper logging
* D to the PI
* Should be in radians
* Add d
* Start oscillations
* Add D term
* Only change torque rate limits for new tune
* Add d logging
* Should be enough
* Wrong sign in D
* Downtune a little
* Needed to prevent faults
* Add lqr rav4 to tune
* Try derivative again
* Data based retune
* Data based retune
* add friction compensation
* Doesnt need too much P with friction comp
* remove lqr
* Remove kd
* Fix tests
* fix tests
* Too much error
* Get roll induced error under 1cm/deg
* Too much jitter
* Do roll comp
* Add ki
* Final update
* Update refs
* Cleanup latcontrol_torque a little more
old-commit-hash: fe0bcdaef6
* do tesla
* parentheses
* Do Chrysler
* Make sure Hyundai long never actuates when long inactive
.
* clean up Hyundai
* more clear
* formatting
* Stock sets these to zero
* fix params
* move jerk logic into CC
clean up
old-commit-hash: c8f5b21744
* 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
* 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
* pedal redo
* add offset to compensate for creep and windbrake
* offset in standard units
* wrong size
* better creep values
* update ref
old-commit-hash: eda6993043
* 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
* 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
* ignore permanent low speed lockout
* should always check in case not seen
* use cp_cam
* not bus 0
* change signal name according to ref dbc
* bump
* we don't rely on this
* bump
* Revert "Toyota: debug logging for low speed lockout (#21526)"
This reverts commit c0d4c7e69a29e58a13573dab5a88792559b965b6.
* add back
* always add
* pass acc_type through
* Update selfdrive/car/toyota/carstate.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/car/toyota/carstate.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* only update acc_type if not enableDsu
* only add when using
* only for openpilot long cars
* only seen TSS2
* add todo
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 16e4f432bf
* Emit correct alerts for LDW Left & Right on Subarus
This change switches the ldw event to use VisualAlert.ldw and
alters all cars to use the prior behaviour for that alert, except
global subarus - they emit the correct warning to the dash
* Remove whitespace, and add comment about not overwriting stock alerts
Co-authored-by: Crispin Flowerday <crispin@theflowerdays.com>
old-commit-hash: 7458e143e3
* 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
* Fix TSS2 creep issue, no need to send standstill request
* Forgot to add import
* Changed set to look in from TSS2_CAR to NO_STOP_TIMER_CAR
old-commit-hash: d93f07f5e6