Jason Wen
de64b99740
Torque Lateral Control: customized settings ( #1314 )
...
* init
* use internal frame
* exit early if toggle not enabled
* ui init
* ui: replace `static_cast<int>` with `std::nearbyint` for precise rounding
* revert
* update title
* handle live relaxed
* fix
* tweak ui
* toggle behaviors
* lint
* Update torqued_ext.py
* always update
* make sure it's updated properly with offroad states
* fix
* make sure to initialize
---------
Co-authored-by: nayan <nayan8teen@gmail.com >
2025-10-05 23:41:31 -04:00
Jason Wen
97c2d7e655
Merge branch 'upstream/openpilot/master' into sync-20250809
...
# Conflicts:
# common/params_keys.h
# opendbc_repo
# panda
# selfdrive/car/cruise.py
# selfdrive/controls/controlsd.py
# selfdrive/selfdrived/selfdrived.py
# selfdrive/test/process_replay/process_replay.py
# selfdrive/ui/qt/setup/setup.cc
# tinygrad_repo
2025-08-10 02:05:05 -04:00
Jason Wen
1bc12f1e21
Reapply "LagdToggle: refactor and only instantiate once" ( #1137 ) ( #1138 )
...
* Reapply "`LagdToggle`: refactor and only instantiate once" (#1137 )
This reverts commit b4f19d4860 .
* infinite woo gone
* use them hz
2025-08-09 22:50:29 -04:00
Jason Wen
b4f19d4860
Revert "LagdToggle: refactor and only instantiate once" ( #1137 )
...
Revert "`LagdToggle`: refactor and only instantiate once (#1130 )"
This reverts commit 6ae668e987 .
2025-08-09 20:06:10 -04:00
Jason Wen
6ae668e987
LagdToggle: refactor and only instantiate once (#1130 )
...
* wrap the params
* just 1 class and use a single param for now
* refactor
* fix
* cache itself
* no longer
* rename
* type hint
* in helpers instead
* lint
* all
* init as 0 to pass ci
* init as 0 to pass ci
* return_default
* fix init
* add LAT_SMOOTH_SECONDS directly in modeld, temp remove dynamic desc, red difffffffff
2025-08-09 16:51:31 -04:00
Jason Young
839a773345
enable lateral accel factor learning for Honda ( #35936 )
...
enable torqued for Honda
2025-08-06 16:11:07 -04:00
DevTekVE
9dc98b36be
refactor: cleanup gravity constant handling ( #35866 )
...
* refactor: move lateral methods from init to lateral.py (#2594 )
* Extracting lateral methods to lateral.py
* cleaning
* more cleaning
* more cleaning
* Making sure it remains where it should
* Leave rate_limit where it belongs
* Moving things to `car/controls/`
* Moving rate limit to get a taste of the changes
* clean
* copy verbatim
* clean up
* more
* now we can format
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
* No need to change order of import
* refactor: consolidate ACCELERATION_DUE_TO_GRAVITY import path
* bump opendbc
* update refs
* don't import from opendbc
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2025-08-02 11:20:18 -07:00
James Vecellio-Grant
d0bd8cc4a3
liveDelay: Add live delay toggle to vehicles using torqued ( #1001 )
...
* Add live delay toggle to torqued.py and twilsonco NNLC
* Set this in init
* Clean up
* Live delay toggle refactor
* ModeldLagd -> LagdToggle
* This is for lagd_toggle.py
* Add to NNLC
* Lagd toggle:
Display current values on UI
* Add break
* LagdToggleDelay
Live edit software_delay when livedelay is toggled `off`
* Always show description
* Add description as to why values don't update offroad
---------
Co-authored-by: Kumar <36933347+rav4kumar@users.noreply.github.com >
2025-07-05 14:42:36 -07:00
Shane Smiskol
bfa3f3cccb
Add calPerc progress tracking for torque calibration ( #35512 )
...
* Add calPerc field and torque progress
* Fix torqued test style and CarParams usage
* test: remove unused numpy import
* move here
* trying all combinations to see what's most linear
* clean up with best method
* no no
* epic
* clean up
* last min not needed
* doesn't hurt
* list comp
2025-06-10 00:22:13 -07:00
Kacper Rączy
97ad175243
Reapply "Enable online lag learning ( #34968 )" ( #35327 )
...
* Revert "Revert "Enable online lag learning (#34968 )" (#35322 )"
This reverts commit 9c40c48729 .
* Update ref commit
* Update ref
* Update ref commit
2025-05-24 02:31:17 +00:00
Kacper Rączy
9c40c48729
Revert "Enable online lag learning ( #34968 )" ( #35322 )
...
* Revert "Enable online lag learning (#34968 )"
* Update ref commit
2025-05-22 01:55:19 +00:00
Kacper Rączy
45b273328d
Enable online lag learning ( #34968 )
...
* Use in modeld
* Use in torqued
* Do not use default value in torqued
* Add liveDelay in process replay
* update ref
---------
Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com >
2025-05-01 11:42:49 -07:00
Shane Smiskol
c55ef3ae1b
Rivian: enable torqued learning ( #34912 )
2025-03-20 17:09:52 -07:00
Shane Smiskol
8f3e773977
actuators: rename steer to torque ( #34724 )
...
* bump
* temp fix
* fix
* forgot these
2025-02-27 16:12:55 -08:00
Shane Smiskol
6723106bf5
Move vehicle_model.py to opendbc ( #34681 )
...
* move
* fix
* move test too
* bump
* better
* bump to master
2025-02-26 17:35:43 -08:00
Shane Smiskol
1d86afdf83
carName -> brand ( #34474 )
...
* bump
* brand
* body is lower
2025-01-25 01:39:06 -06:00
Kacper Rączy
80bc61dc6c
controlsd: use livePose ( #33283 )
...
* Pose calibrator
* Fix static analysis
* Fix static
* Fix test_latcontrol
* Fix test_latcontrol
* Update services in process replay
* Fix static
* Matmul not mul
* Add assertion
* Move pose calibration to data_sample
* Update ref commit
* Remove llk from cycle alerts
* Deprecated nogps event
* Switch power_draw to lp
* Bring back noGps alert
* Add handling code back
* get_bool
* Bring inputsok back
old-commit-hash: 9734015bbb
2024-08-13 21:11:16 -07:00
Kacper Rączy
7ea8d9e91d
torqued: use livePose ( #33136 )
...
* Use livePose
* Replace it in process replay
* Add liveCalibration to messages
* Update ref commit
old-commit-hash: 86d8d1d996
2024-07-29 20:20:31 -07:00
Shane Smiskol
bb67139ca7
torqued: check steer override to current time ( #32963 )
...
* lat active/steer override: check up to now
* lint
* Update ref_commit
old-commit-hash: b247c3caaa
2024-07-10 17:25:39 -07:00
Shane Smiskol
1b4583a63e
torqued: clean up ( #32958 )
...
* formatting
* function signatures didn't match
* function signatures didn't match
* filtered and raw mean something totally different when it comes to params
filtered and raw mean something totally different when it comes to params
* cmt
* probably better for organization
* add todo
* STASH
* revert some stuff
* clean up
* oof
old-commit-hash: fbc53a24a3
2024-07-09 22:26:58 -07:00
Shane Smiskol
11617a42dd
torqued: option to keep track of all points ( #32957 )
...
* how about this
* here
* rename
* revert
* revert this too
* can do this
* ugh inside TorqueBuckets it implicitly limits steer torque to 50%!!!!!!!!
* fix
* move up
old-commit-hash: 5efdaf2026
2024-07-09 22:21:50 -07:00
Shane Smiskol
49469d9ffa
format torqued.py
...
old-commit-hash: 0c58e35b6c
2024-07-09 21:16:36 -07:00
Shane Smiskol
abd29fa646
torqued: rename lat_active ( #32942 )
...
* Update torqued.py
* lint
* not necessary
old-commit-hash: 35df0a4fda
2024-07-08 22:53:59 -07:00
Dean Lee
45c3992e43
CarParams: set no traversal limit ( #32929 )
...
* Increase traversal_limit_in_words to Fix Traversal Limit Errors
* just use log_from_bytes
* come on pycharm
* no free lunch
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
old-commit-hash: 12d729a0a0
2024-07-08 13:50:31 -07:00
Justin Newberry
e581322de5
torqued: use correct time from carOutput ( #31712 )
...
fix timings
old-commit-hash: 9d4d5f6077
2024-03-05 11:02:02 -08:00
Justin Newberry
891b9a1ab4
card: prepare for separate process ( #31660 )
...
* Card
* update ref
* bump cpu
* sub to caroutput
* update ref
old-commit-hash: 8ec0d87de0
2024-03-04 09:53:42 -08:00
Shane Smiskol
9cc2677a7a
torqued: log raw params if calculable ( #31521 )
...
* log params when calculable
* better
* Update ref_commit
* this is redundant
* this is only used in one place, confusing which to use so remove
* better
old-commit-hash: c3e3103830
2024-02-20 22:30:51 -08:00
Adeeb Shihadeh
adcac1f207
SubMaster: improve service aliveness checks ( #31391 )
...
* bump cereal
* fix
* fixes
* single poll
* bump
* bump
---------
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 279d2c3b23
2024-02-12 10:11:37 -08:00
Harald Schäfer
66dbadb029
Delete lat planner ( #31089 )
...
* Initial commit
* Fixup
* typo
* ignore lateral plan
* Update cereal
* Remove lateralPlan
* Fix release build
* Fix release build
* give car params
* Add carParams to include_all_types
* Write car param in powerdraw test
* add demo mode
* Update model regf
* proc replay ref commit
* Try
* Move enum definition
* Update cereal
* typo
* Write car param for modeld test
* Update ref
* Update model ref again
---------
Co-authored-by: Kacper Rączy <gfw.kra@gmail.com >
old-commit-hash: e6c97c3846
2024-01-21 12:09:48 -08:00
Adeeb Shihadeh
3b73fce7ed
fix put_nonblocking reference
...
old-commit-hash: bd8a99ba28
2023-12-13 20:52:43 -08:00
Jason Wen
995c951dae
torqued: cache bucket points every minute while onroad ( #30515 )
...
* torqued: cache bucket points every minute while onroad
* use put_nonblocking
* remove caching on exit
* unused
* more unused
* remove logging
old-commit-hash: fcc671297e
2023-12-13 20:30:33 -08:00
Adeeb Shihadeh
59eb2988de
swaglog.py goes in common/ ( #30631 )
...
* swaglog.py goes in common/
* all of these go in release
* we'll even include the pyx
old-commit-hash: 35f819c823
2023-12-06 17:27:51 -08:00
Vivek Aithal
f8dce94688
params: Remove separate CarParams from each daemon ( #30405 )
...
* remove separate previous route carparams from each daemon and add centrally to controlsd
* extract out sigint handler
* make process replay work for torqued
* don't write param if None
old-commit-hash: 2eb487c9a5
2023-11-08 15:25:41 -08:00
Adeeb Shihadeh
4b78e52e34
cleanup old sm pm args ( #30241 )
...
* cleanup sm pm
* fix controlsd
* fix
old-commit-hash: b68cfbb332
2023-10-13 23:27:04 -07:00
Vivek Aithal
db2344cdd2
torqued: Refactor to share code with magd ( #30238 )
...
* refactor to extract common functions and classes out
* Add helpers.py to release files
* refactor
old-commit-hash: 9e24a11f17
2023-10-13 17:24:04 -07:00
Shane Smiskol
91ae82c9cc
torqued: useParams field reflects if using torque control ( #30059 )
...
fix useParams
old-commit-hash: 61c5618f15
2023-09-26 17:23:10 -07:00
Adeeb Shihadeh
16ec56398c
add openpilot prefix to imports ( #29498 )
...
* add openpilot prefix to imports
* more
* more
* fix docs
* fix linter
* bump submodules
* fix patched tests
* update dynamic imports
* debug
* Revert "debug"
This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.
* fix pm test
old-commit-hash: a9626f95b6
2023-08-20 20:49:55 -07:00
Justin Newberry
f33b4de80b
Ruff: b905 (strict zip) ( #29336 )
...
* added mutable default args
* most of the Bs
* add comment about lrucache
* b905
old-commit-hash: e4ead4f183
2023-08-11 16:13:51 -07:00
Justin Newberry
a14f162bc7
Ruff: comprehensions conventions ( #29317 )
...
ignore c408
old-commit-hash: 4a9afd7554
2023-08-10 16:40:30 -07:00
Adeeb Shihadeh
c261f97f6c
torqued: fix cache loading ( #29088 )
...
* torqued: fix cache loading
* rm that
old-commit-hash: 4bac67c0f5
2023-07-21 17:28:04 -07:00
Adeeb Shihadeh
b0c3778aae
agnos 8 ( #28843 )
...
* agnos 8
* update to python 3.11.4 (#27452 )
* rebase
* optional
* lower cython
* TEMP don't pull cl to use python3.11
* Revert "lower cython"
This reverts commit c5132f8a2727c212bdfc01e77aa53e50a17ead9d.
* fix cython
* remove tensorrt
* carla + opencv
* macos
* update timm and smp
* pynvc
* https
* downgrade numpy
* pin scipy
---------
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com >
Co-authored-by: Yassine <yassine.y10@gmail.com >
* revert that
* fix linter
---------
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com >
Co-authored-by: Yassine <yassine.y10@gmail.com >
old-commit-hash: 1945c356c2
2023-07-20 21:56:57 -07:00
Adeeb Shihadeh
33e6aad83b
Revert "Update pycapnp and Cython ( #29021 )"
...
This reverts commit 9f80430d3958cbcf4fb9b67a428f45fd034c5649.
old-commit-hash: 9c307f2550
2023-07-18 18:47:35 -07:00
Maxime Desroches
6ba97408e9
Update pycapnp and Cython ( #29021 )
...
* cython + pycapnp
* from_bytes with context
* poetry lock
* limit numpy
* force build
* Revert "force build"
This reverts commit 8c7cb00421da9d0f1b7da2c94f75e9c43733f840.
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 76ef1b9b9f
2023-07-18 16:40:36 -07:00
Vivek Aithal
39e10d3ae3
[RAM 1500 5TH GEN] Disable Live Torque ( #27121 )
...
* revert ram on live torque
* update refs
* update refs
old-commit-hash: 8d447e8a08
2023-01-27 15:20:59 -08:00
Vivek Aithal
905cd786f1
torqued: Update reset logic ( #27103 )
...
* update reset logic
* bugfix
old-commit-hash: 9201267fb7
2023-01-26 14:48:46 -08:00
Vivek Aithal
f549106466
[RAM 1500 5TH GEN] Update offline torque parameters and enable torqued ( #27072 )
...
* make run torque learnable
* update ram offline values
* add ram 1500 to torqued
* update refs
old-commit-hash: 7ba8e56e87
2023-01-24 19:22:13 -08:00
Vivek Aithal
71696403fb
[torqued] Make torqued work on Hyundai Tucson ( #26511 )
...
* changes to get offline values
* set tucon values
* move to params.yaml
old-commit-hash: d4fd0c3c87
2022-11-15 18:41:43 -08:00
Vivek Aithal
d843347126
[torqued] Update offline values ( #26261 )
...
* add qlog mode to torqued
* update offline valujes from qlogs
* resollve comments
* update refs
* resolve comments
old-commit-hash: b158c016cb
2022-10-27 16:34:11 -07:00
Vivek Aithal
a03192a8d7
Extend torqued ( #25961 )
...
* extend live torque to all hyundai and toyota cars
* update refs
old-commit-hash: ca746b0a18
2022-10-04 13:34:31 -07:00
Vivek Aithal
911f4f9ea3
Live torque fix ( #25868 )
...
* fix np empty array quirk
* reset to offline values if saved values were not valid live
* edit cloudlog text
old-commit-hash: 4bc175bb9c
2022-09-29 16:36:43 -07:00