Jason Wen
bf0411be00
Enhanced Speed Control: accelerator press state handling ( #170 )
...
Enhanced Speed Control: accelerator press state handling
2023-06-06 21:00:21 -04:00
Jason Wen
6c2a58f2e9
Merge branch 'upstream/openpilot/master'
...
# Conflicts:
# cereal
# common/params.cc
# panda
# selfdrive/car/subaru/subarucan.py
# selfdrive/controls/lib/lateral_planner.py
# selfdrive/controls/lib/longitudinal_planner.py
2023-05-25 12:17:54 -04:00
Kacper Rączy
7b68a13048
lateral_planner: init missing variables ( #28222 )
...
Init missing variables in LateralPlanner constructor
2023-05-17 14:04:17 -07:00
Adeeb Shihadeh
c192c92a4e
calibrationd: add offroad alert when remount detected ( #28073 )
...
* calibrationd: add offroad alert for recalibration
* Update common/params.cc
2023-05-15 13:10:36 -07:00
Harald Schäfer
598343aad1
Calibrationd: make recalibrating alert ( #28149 )
...
* Initial
* fixes
* not an int anymore
* elif
* revert ref
* update ref
* fix alert text
* regen refs
* update ref
* add recalibration unit test
* set into recalibration state
* fix words
* recalib
* text
* Update selfdrive/controls/lib/events.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-05-15 09:29:57 -07:00
Shane Smiskol
344064d6bd
Ford: hybrids are unsupported ( #28171 )
...
* hybrid fords are dashcammed
* something like this?
* just do an alert
* good comment
* space
* bb
bb
* top
* Update selfdrive/car/ford/interface.py
* add a noEntry
* remove from release notes
* sad :(
---------
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
2023-05-11 23:35:07 -07:00
Vivek Aithal
a599890fed
Lateral Planner: Calibrate model speed with vEgo ( #28049 )
...
* calibrate speed in the lateral planner
* make speed err helper fn
* check if trans has values
* clip the vel_err
* update refs
2023-05-09 14:26:58 -07:00
Shane Smiskol
fb29d0f3bf
Ford: add alert for steering wheel angle not ready ( #28140 )
...
* add event for steering angle calibrating
* how about this
how about this
* rename
* more openpilot-y
* add comment to code
* move to top
* better wording
* more general
* fix
* ?
* above
* bump cereal to master
* add more comms
2023-05-08 22:03:30 -07:00
Jason Wen
8a61496937
Merge remote-tracking branch 'upstream/commaai/openpilot/master'
...
# Conflicts:
# .pre-commit-config.yaml
# cereal
# opendbc
# panda
# selfdrive/car/hyundai/carstate.py
# selfdrive/car/hyundai/interface.py
# selfdrive/car/toyota/interface.py
2023-04-25 01:10:56 -04:00
Harald Schäfer
a979a54cf9
Calibration remount detector: soft disable ( #27993 )
...
* Calibration remount detector: soft disable
* Update test_calibrationd.py
2023-04-22 00:27:20 +00:00
Jason Wen
89e2a6ea9b
Merge remote-tracking branch 'upstream/commaai/openpilot/master'
...
# Conflicts:
# cereal
# panda
2023-03-30 23:07:29 -04:00
Vivek Aithal
15b880c0ea
Bolt EUV: Non-linear torque function ( #27696 )
...
* 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 >
2023-03-29 15:10:39 -07:00
Jason Wen
75fd9b1b22
Long planner: fix upstream merge conflicts ( #145 )
...
Fix upstream merge conflicts
2023-03-29 17:53:58 -04:00
Jason Young
267974e002
remove accFaultedTemp, add steerTimeLimit ( #27720 )
...
* remove accFaultedTemp
* retry CI
* bump cereal
* grab the new steerTimeLimit Event
* bump cereal to updated master
2023-03-28 16:04:14 -07:00
Jason Wen
bb76d4f9e9
Block Enhanced Speed Control events on unsupported platforms ( #140 )
2023-03-25 10:07:52 -04:00
Jason Wen
b475e28087
Merge remote-tracking branch 'upstream/commaai/openpilot/master'
...
# Conflicts:
# cereal
# panda
# selfdrive/car/hyundai/interface.py
# selfdrive/car/toyota/carcontroller.py
2023-03-12 14:52:12 -04:00
Shane Smiskol
3ab8645d3a
uiPlan: add planned acceleration field ( #27484 )
...
* add accel
* bump cereal
* Update ref_commit
---------
Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com >
2023-03-02 20:11:24 -08:00
Adeeb Shihadeh
7a3b3e8b56
better main off alert ( #27442 )
2023-02-23 15:01:10 -08:00
Adeeb Shihadeh
2008332bd4
GM: revert custom Bolt torque tune ( #27403 )
...
* Revert "GM: cleanup torque feedforward function (#27347 )"
This reverts commit 8c099dd4e5 .
* Revert "Chevrolet Bolt: Non-linear torque tune (#27344 )"
This reverts commit e49748d571 .
* update refs
2023-02-21 15:27:48 -08:00
Jason Wen
0ce258612b
move-fast: v-tsc fix
2023-02-20 22:48:51 -05:00
Adeeb Shihadeh
ea419c5764
add 'remount device' to permanent calibration invalid alert ( #27407 )
2023-02-20 16:29:17 -08:00
Jason Wen
4b2ce89412
Merge remote-tracking branch 'upstream/commaai/openpilot/master'
...
# Conflicts:
# cereal
# selfdrive/ui/ui.cc
2023-02-18 23:52:21 -05:00
Harald Schäfer
eb8bdc0026
MPC path in UI ( #27380 )
...
* 10s lat
* Full length MPC
* redfine N
* Leave controls the same for now
* Updates
* use long plan in lat plan
* interp plan
* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/
* expand to 10s
* revert this
* fix linter
* vizualize
* fix long test
* typo
* cleanup
* compiles
* unused
* unused
* bump cereal
* bump cereal
* use model if no uiplanm
* update replay
* update ref commit
* bump cereal to master
2023-02-17 19:58:30 -08:00
Harald Schäfer
04fe6c4ec7
Expand lateral MPC to 10s ( #27343 )
...
* 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 6e23c69dcebd5ed003e37e01921f6af7c31de0db.
* Dont import drive helpers
* better compile deps
* fix compile
* comment
* update replay
* Update plannerd time
2023-02-17 15:28:26 -08:00
Jason Wen
75a00af955
Merge remote-tracking branch 'upstream/commaai/openpilot/master'
...
# Conflicts:
# cereal
# opendbc
# panda
2023-02-14 20:42:02 -05:00
Vivek Aithal
e49748d571
Chevrolet Bolt: Non-linear torque tune ( #27344 )
...
* add non linear tune
* update refs
* rerun tests
2023-02-14 16:20:28 -08:00
Adeeb Shihadeh
5af5f02ba8
better min enable speed alert ( #27317 )
2023-02-14 13:29:23 -08:00
Jason Wen
bf659453aa
move-fast: mapd, Speed Limit Control, Vision & Map Turn Speed Control ( #111 )
...
* move-fast: Hands on wheel monitoring: Implementation according to r079r4e regulation
* move-fast: VisionTurnController Implementation & UI prerequisites
* move-fast: LiveMapData: Implementation & UI prerequisites
* add dependencies
* move-fast: SpeedLimitControl: Implementation & UI prerequisites
* move-fast: TurnSpeedController: Implementation & UI prerequisites
* move-fast: Debug: Tap on Ui to capture snapshot of debug data & UI prerequisites
* Debug UI: Toggle to display debug UI elements & UI prerequisites
2023-02-13 11:38:11 -05:00
Shane Smiskol
4f2134468f
events: reword ESP off alert ( #27304 )
...
* Rename event
* rename to Control
* rename to disabled
2023-02-10 23:46:48 -08:00
Jason Wen
6ad79d3e81
Longitudinal: Reverse ACC Change ( #110 )
2023-02-11 02:26:50 -05:00
Jason Wen
eb591e3015
Merge remote-tracking branch 'upstream/commaai/openpilot/master'
...
# Conflicts:
# opendbc
2023-02-11 01:23:43 -05:00
Adeeb Shihadeh
5ab2d35f7b
controlsd: higher default set speed in experimental mode ( #27279 )
...
* controlsd: higher default set speed in experimental mode
* update tests
* update tests
2023-02-09 19:27:51 -08:00
Jason Wen
2a841a7757
Lane Change Timer ( #104 )
2023-02-05 14:31:09 -05:00
Shane Smiskol
b00bc4f57e
Car interface: require fingerprint and FW versions to get params ( #26932 )
...
* require fingerprint and FW versions
* add get_non_essential_params()
* comment
* all required
* classmethod, need to allow subclasses to override _get_params
* fix that
* fix
* fix
* wrong fix 🤦
2023-01-12 12:25:24 -08:00
Adeeb Shihadeh
f14deae475
Revert "Car interface: require fingerprint and FW versions to get params ( #26766 )"
...
This reverts commit b68dabb689 .
2023-01-12 11:28:04 -08:00
Shane Smiskol
b68dabb689
Car interface: require fingerprint and FW versions to get params ( #26766 )
...
* require fingerprint and FW versions
* add get_non_essential_params()
* comment
* all required
* classmethod, need to allow subclasses to override _get_params
* fix that
* fix
2023-01-11 23:44:50 -08:00
Jason Young
cb88b3ed65
controlsd: set latActive with max minimum steer speed ( #26805 )
...
* refactor minimum lateral speed handling
* rename for clarity
* simplify without joystick at standstill
* intermediate standstill variable, check notCar
* check joystick for now
* cmt
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2023-01-10 20:51:10 -08:00
Shane Smiskol
b45dda2d0a
Longitudinal tests: test forceDecel ( #26765 )
...
* test with forceDecel
* test all combos
* fix
* fix
* fix
* ...
* remove print
* clean up
* just set cruise to 0
* update ref commit
Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com >
2023-01-10 14:46:43 -08:00
Shane Smiskol
4e9bddee5c
longcontrol: enter stopping state immediately ( #26879 )
...
* enter stopping state immediately
* Update selfdrive/controls/lib/longcontrol.py
2023-01-10 13:02:43 -08:00
Adeeb Shihadeh
cd8e03d53e
move all third party stuff into third_party/ ( #26853 )
...
* mv fastcluster
* move msm_kgsl.h
* camerad include
* update path
* mv pyextra
* fix tici build
* add acados_template to release build
Co-authored-by: Comma Device <device@comma.ai >
2022-12-31 21:00:50 -08:00
Shane Smiskol
9e9600a4f4
Events: actionable accFaulted alert text ( #26783 )
...
same alert text as steer and brake unavailable
2022-12-13 00:16:36 -08:00
Shane Smiskol
2545dd195e
alert: smaller standstill alert ( #26751 )
...
smaller standstill alert
2022-12-09 23:30:41 -08:00
Shane Smiskol
84340f07ab
LatControlAngle: fix setting saturation check speed ( #26752 )
...
set in init function
2022-12-09 23:29:56 -08:00
Shane Smiskol
d5ffb90a04
LatControlAngle: lower saturation check speed ( #26749 )
...
lower speed for angle
2022-12-09 21:43:55 -08:00
Shane Smiskol
c1b3d696bc
controlsd: set steer_limited for angle cars ( #26748 )
...
* Set steer limited for angle cars
* closer to torque threshold
2022-12-09 21:43:27 -08:00
Shane Smiskol
e6fcc2d6aa
planner: read experimental mode from controlsState ( #26553 )
...
read from controlsState
2022-12-05 13:58:15 -08:00
Shane Smiskol
5409895ab2
Deprecate noTarget event ( #26638 )
...
deprecate notarget
2022-11-30 02:32:47 -08:00
Shane Smiskol
dbe512d167
controlsd: preEnable on brake at a standstill ( #26273 )
...
* pre-enable on brake at standstill
* test by getting rid of noTarget
* Update events.py
* rename
* stash what we got so far
* cmt
* not sure if best way to fix, but enabled with current states defs is fine
* no noEntry in preEnabled
* bumpcereal
* uncomment
* Update ref_commit
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-11-29 17:34:10 -08:00
Vivek Aithal
3a4f19f0ee
[controlsd] Refactor apply_deadzone in Lateral Torque Control ( #26626 )
...
rename apply_slack to apply_center_deadzone, remove unused prius offline values
2022-11-29 12:46:08 -08:00
Vivek Aithal
0706b03e8c
[controlsd] Toyota Prius 2017 ( #26455 )
...
* 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
2022-11-29 10:47:13 -08:00