* limit max curvature with lateral accel too
* not a guideline
* roll compensation in curv clip
* improve clipping and alerting
* typo
* clean up
* no float
* get ready
* good idea
* good
* redundant
* TODO
* test
* do max curvature clip last
* flip
---------
Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
* remove another exception (remove mention of events from car stack)
* guess this should've been here all along
* reorganize exceptions
* fix
old-commit-hash: 06216d43bb
Revert "selfdrive/car: ban imports from external modules (#32973)"
This reverts commit c1e8ff2dbc47ccb07fb41a4e88bfb66af2669254.
old-commit-hash: 35a4a773f1
* Simplify long control
* Seperate
* Rename
* Try new api for toyota
* rm v_pid everywhere
* No speed in reset
* 0 is better default
* unassigned variable
* Update other cars
* Update gm
* SIMPLIFY
* simplify more
* fix API boundry
* Fix stopping bug
* Small fixes
* Update ref
old-commit-hash: bc303df6a0
* WIP try modeld all in python
* fix plan
* add lane lines stds
* fix lane lines prob
* add lead prob
* add meta
* simplify plan parsing
* add hard brake pred
* add confidence
* fix desire state and desire pred
* check this file for now
* rm prints
* rm debug
* add todos
* add plan_t_idxs
* same as cpp
* removed cython
* add wfd width - rm cpp code
* add new files rm old files
* get metadata at compile time
* forgot this file
* now uses more CPU
* not used
* update readme
* lint
* copy this too
* simplify disengage probs
* update model replay ref commit
* update again
* confidence: remove if statemens
* use publish_state.enqueue
* Revert "use publish_state.enqueue"
This reverts commit d8807c8348.
* confidence: better shape defs
* use ModelConstants class
* fix confidence
* Parser
* slightly more power too
* no inline ifs :(
* confidence: just use if statements
old-commit-hash: cad17b1255
* first draft copy, needs updates
* gate behind exp mode
* can be one line
* this is no longer true
* toggle isn't just e2e long now, rename
* don't enable/disable
* kinda works!
* remove old giant qstring
* comment clean up
* similar breakpoint
* more clean up
* fixup onroad
* preserve planner behavior, and we don't need to look at confirmed param if we're onroad
* update translations
* vanish translations
* use scene for op long
* lowercase!
* updated copy
* need to check longitudinal here now too
* clean up!
* here is better
* used
* no nav emoji
* don't check param if not valid
* revert this
revert this
* ed
old-commit-hash: f973d605b2
* calibrate speed in the lateral planner
* make speed err helper fn
* check if trans has values
* clip the vel_err
* update refs
old-commit-hash: a599890fed
* add erf based ff
* silly bug; diff of nonlinear != nonlinear of diff
* add sigmoid based ff, ensure slope at 0 > 1
* reduce steer down limit and increase driver allowance
* rebase panda
* atry without friction, and with tanh nonlinear
* finalize the nonlinear function
* do not disable friction compensation in the ff
* bump panda
* bump panda
* update refs
* update refs
* resolve comments
* Add type hints
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 15b880c0ea
* 10s lat
* Full length MPC
* redfine N
* Leave controls the same for now
* Updates
* use long plan in lat plan
* interp plan
* add new interp
* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/
* expand to 10s
* revert this
* fix linter
* Update sconscripts
* fix test
* fix test
* fix test
* Revert "Update sconscripts"
This reverts commit 6e23c69dce.
* Dont import drive helpers
* better compile deps
* fix compile
* comment
* update replay
* Update plannerd time
old-commit-hash: 04fe6c4ec7
* increase lag on prius
* better offline values computation
* split prius ecu more, set deadzone to 0
* add deadzone back
* replace deadzone with slack
* reduce deadzone to 0.2
* update refs
old-commit-hash: 0706b03e8c
* test
* test
* debug
* test
* test
* test
* clean up
* clean up
* add test
* stash
* clean up
* clean up
* clean up
* assert equal
old-commit-hash: 23a7a987f6
* fix runaway set speed for GM
* fix runaway set speed for GM
* Handle resuming to exit standstill generically
* clean that up
* ugh i want to fix all the formatting
* class that manages v_cruise
* better name
* move around
* add depressed_state
* fine to update on pressed change, better name
* cmt
* we need to check CS. button_change_state only works if we exit standstill on rising edge not falling edge
* no defaultdict
old-commit-hash: 76ac3d4c99
* fix runaway set speed for GM
* fix runaway set speed for GM
* Handle resuming to exit standstill generically
* clean that up
* ugh i want to fix all the formatting
* class that manages v_cruise
* better name
* move around
* add depressed_state
* fine to update on pressed change, better name
* revert gm stuff
* revert standstill stuff
* remove
* revert that
* we can put this in here now!
* below update
* actually only used here
* one line
old-commit-hash: 811c096e64
* see if this works at all
* can revert this
* think adding a no entry conditionally is nicer
* then we can revert this
* 0 makes more sense
* Revert "0 makes more sense"
This reverts commit efc89e8a23.
* gm CC uses > 70
* bump cereal
* comment
* test on Honda
* whoops
* works
* add exception with todo
* moved button enable events to controlsd
* get rid of that
get rid of that
* different values for now
* car interfaces add enable event, controlsd can block it
* Regen and update refs
* delete if not set
* One place
one place
* regen routes are uninitialized first few frames
* Trim start of segment so it's like original segment
* stash
* regen
* not working
* clean up
* more cleanup
* revert
* bump ceral
* actually check resume button
* whoops
* pcmCruise cars don't use setSpeed, so we're good
* engage correctly in sim
* Update ref_commit
* Update refs
old-commit-hash: 5ed587ebef
* update names + notes for MPC outputs
"current_curvature" is not the correct description of what the MPC is outputting in it's curvature_ego state.
The MPC is integrating it's free variable, curvature_rate, such that curvature[0] is actually the desired_curvature before any delay.
inversely: the curvature_rate_desired is the desired rate of change to the setpoint and not the actual curvature rate.
If we were to set the initial curvature = measured curvature in the MPC initiation these names would be correct.
This was possibly how it was initially set up but the nomenclature here is now confusing.
* more notes
* match
* Clarify #1
old-commit-hash: b215d611b1
* set while gas pressed to resume
* better order
* what was I thinking?
* Update selfdrive/controls/lib/drive_helpers.py
Co-authored-by: Gijs Koning <gijs-koning@live.nl>
* Update selfdrive/controls/lib/drive_helpers.py
Co-authored-by: Gijs Koning <gijs-koning@live.nl>
* only if under set speed
* some clean up and ciel the v_cruise_kph
* clean up
* actually floor
* Should be cruise min
* On phone, will clean up
* Think no floor is fine
* clean up and catch setCruise
* update comment and just always do rounding and clipping
update comment
* flip order
Co-authored-by: Gijs Koning <gijs-koning@live.nl>
old-commit-hash: d3d210c183