Jason Wen
b2cdfc09ae
Longitudinal: Refactor Experimental Mode toggle with distance button hold ( #409 )
...
* init
* deprecated
* in controlsd directly
* update
* unused
* combine
* only once
* fix
* better
* cleanup
* more
* Update CHANGELOGS.md
2024-08-13 16:16:40 -04:00
Jason Wen
5b674d2231
car: Interface cleanup ( #396 )
...
* deprecated
* cruise main state
* v cruise non pcm state
* acc mads combo
* cancel cruise state
* sp common state
* sp event
* custom stock long
* started mads
* v cruise non pcm state old
* acc mads old
* started mads old
2024-08-13 15:57:27 -04:00
Jason Wen
d35cdb510d
Sync: commaai/msgq:master into sunnypilot/msgq:master
...
Sync: `commaai/opendbc:master` into `sunnypilot/opendbc:master`
Sync: `commaai/panda:master` into `sunnypilot/panda:master`
2024-08-03 21:22:09 -04:00
Jason Wen
09d1604b84
MADS: Honda: Fix PCM ACC disengage fault ( #363 )
...
* MADS: Honda: Fix PCM ACC disengage fault
* try this out
* honda only
2024-08-02 11:41:20 -04:00
Jason Wen
9be3925ee1
MADS: Hyundai: Independent control with LFA button ( #362 )
...
* MADS: HKG CAN-FD: Disallow cruise buttons to engage when pcmCruiseSpeed is off
* handle states properly
* this is better
* make sure main button is pressed
* oops flipped main
* same behavior
* handle cruise main button universally
* both
* not needed
* oops
* wtf how did i miss
2024-08-01 23:34:35 -04:00
Jason Wen
8d760272c7
car: Move all live param checks to ParamManger ( #378 )
...
car: Move all live param checks to ParamManger
2024-08-01 23:23:00 -04:00
Jason Wen
08afbd7cb5
car: Check params before car state is updated ( #364 )
...
* car: Check params before car state is updated
* read params in a thread instead
* initialize list
* Do this instead
* type hint
* ParamManager
* make them internal
2024-08-01 18:12:27 -04:00
Shane Smiskol
7c112341c3
Reapply "update to new opendbc API ( #32009 )" ( #33151 )
...
This reverts commit ac130001cc .
2024-07-31 15:37:39 -07:00
Shane Smiskol
ebff7cab1a
get_fw_versions: test the full stack ( #33156 )
...
* add the test
fix
* bump
* not sure why mypy didn't catch this
2024-07-31 14:53:13 -07:00
Shane Smiskol
ac130001cc
Revert "update to new opendbc API ( #32009 )"
...
This reverts commit 0dddc97dca .
2024-07-31 02:38:44 -07:00
Dean Lee
0dddc97dca
update to new opendbc API ( #32009 )
...
* use new opendbc api
* export pandad_python
* merge master
* merge master
* bump opendbc
* bump opendbc
* improve func
* keep interface unchanged
* fix test_car_interfaces
* bump opendbc
* bump opendbc
* fix test_models
* the interface now has to convert from can capnp to list, so we should include this time
* goes from ~210 to ~240 mean ms real time
* remoe busTime
* lowercase sendcan
* consistent msgtype
* bump
* bump
* not used in lat_mpc
* space
* bump to master
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2024-07-31 00:24:46 -07:00
Shane Smiskol
1b6ac2d876
CarController: call to super's init ( #33148 )
...
* this should be common
* super!
* bump
* and frame is common
* bump
2024-07-30 23:55:23 -07:00
Shane Smiskol
0739d79a51
cars: remove some external imports ( #33133 )
...
* ford and gm
* clean that up
* also this
* honda
* temp fix
* move into selfdrive.car
* clean up
* more
2024-07-30 14:27:27 -07:00
Jason Wen
ca8c74bc0d
MADS: Use modern button events parsing
2024-07-29 06:21:01 -04:00
Shane Smiskol
d684d8f0f6
Reapply "selfdrive/car: ban imports from external modules" ( #32993 ) ( #32994 )
...
* Reapply "selfdrive/car: ban imports from external modules" (#32993 )
This reverts commit 35a4a773f1 .
* controls will just use controls
* also these
* ignore
2024-07-15 11:59:25 -07:00
Shane Smiskol
35a4a773f1
Revert "selfdrive/car: ban imports from external modules" ( #32993 )
...
Revert "selfdrive/car: ban imports from external modules (#32973 )"
This reverts commit 83d4623590 .
2024-07-15 11:14:04 -07:00
Dean Lee
83d4623590
selfdrive/car: ban imports from external modules ( #32973 )
...
* lint import
* Update selfdrive/car/__init__.py
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2024-07-15 11:12:24 -07:00
Jason Wen
c1cd33dbc1
MADS: Fix extra gear check
2024-07-11 15:46:24 +00:00
Jason Wen
a1dbcfd62b
Revert "MADS: Honda Nidec: Fix enforce cruise cancel with stock PCM"
2024-07-08 03:38:29 +00:00
Jason Wen
b455ea197b
CarParam: set spFlags from platforms at init
2024-07-07 17:54:30 -04:00
Adeeb Shihadeh
d3cb0d24c4
Sync: sunnypilot/sunnypilot:master into sunnypilot/openpilot-special:master-priv
2024-07-07 10:15:50 -04:00
rav4kumar
6f9401d902
Merge remote-tracking branch 'comma/master' into sync-20240706
2024-07-06 22:18:32 -04:00
Jason Wen
36eafc0dc6
Hyundai CAN: Log ABS/ESP Activation to espActive ( #32743 )
...
* Hyundai CAN: Log active ABS to accFaulted
* Add comments
* `espActive` to CarState and CarEvent.EventName
* re-order
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2024-06-24 20:14:57 -07:00
Jason Wen
6c429dca06
Sync: sunnypilot/sunnypilot:master into sunnypilot/openpilot-special:master-priv
2024-06-24 16:29:37 -04:00
Jason Wen
8de2399680
Merge branch 'upstream/openpilot/master' into SP-157-sync-20240614
...
# Conflicts:
# cereal/services.py
# msgq_repo
# selfdrive/car/hyundai/interface.py
# selfdrive/car/toyota/interface.py
# selfdrive/controls/lib/longcontrol.py
# selfdrive/controls/plannerd.py
2024-06-16 22:34:35 -04:00
Harald Schäfer
bc303df6a0
long control: new API ( #32706 )
...
* 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
2024-06-14 00:08:58 -07:00
Jason Wen
c55d11a865
Sync: sunnypilot/sunnypilot:master into sunnypilot/openpilot-special:master-priv
2024-06-12 21:43:05 -04:00
Jason Wen
9e63be9ba2
Sync: commaai/opendbc:master into sunnypilot/opendbc:master
...
Sync: `commaai/panda:master` into `sunnypilot/panda:master`
2024-06-12 21:09:05 -04:00
Jason Wen
524d7b73f9
Sync: sunnypilot/panda:master into sunnypilot/panda-special:master-priv
2024-06-12 16:21:36 -04:00
Harald Schäfer
965415135a
Long control: Double delay is super complicated ( #32694 )
...
* Double delay is super complicated
* No more upper bound
* DEAD
* Update ref
2024-06-10 22:29:17 -07:00
Jason Wen
1ffc59f65a
Merge branch 'upstream/openpilot/master' into sync-20240608
...
# Conflicts:
# cereal
# opendbc
# panda
# release/files_common
# selfdrive/monitoring/dmonitoringd.py
# selfdrive/ui/translations/main_zh-CHS.ts
# selfdrive/ui/translations/main_zh-CHT.ts
2024-06-08 23:08:33 -04:00
Dean Lee
045b9f20b7
improve get_torque_params ( #32586 )
...
* Loading torque data only once and reusing it across function calls.
* apply review
* still check only one entry
* fix that
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2024-06-05 21:21:16 -07:00
Dean Lee
91fd918fcb
car/interfaces.py: optimize parse_gear_shifter() with predefined dictionary ( #32592 )
...
Optimize gear shifter parsing for improved performance
2024-06-05 18:04:03 -07:00
Jason Wen
2c0ab40c82
Controls: Customizable Pause Lateral Speed
2024-05-31 23:01:31 +00:00
cl0cks4fe
8f4b00c263
cache get_torque_params ( #32560 )
...
* cache get_torque_params
* switch to cache
* Update selfdrive/car/interfaces.py
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2024-05-31 13:43:12 -07:00
Jason Wen
0a6bc53fc2
Revert "Longitudinal: Use upstream button timer to toggle between Chill & Experimental Mode"
...
This reverts commit d959c43284 .
2024-05-16 12:45:05 -04:00
Jason Wen
d959c43284
Longitudinal: Use upstream button timer to toggle between Chill & Experimental Mode
2024-05-16 00:12:17 -04:00
Jason Wen
250afef443
Merge branch 'master' into SP-59-sync-priv-20240507
...
# Conflicts:
# panda
# release/build_release.sh
# selfdrive/car/volkswagen/interface.py
2024-05-15 16:04:19 -04:00
Shane Smiskol
d0d44a51a0
card: create pedal pressed event ( #32417 )
...
* card: create pedal pressed event (#32393 )
* move pedalPressed to card
* rm
* needs to be a builder
* move these
* clean up
* reader later
* Update ref_commit
* moved to card
2024-05-13 16:18:55 -07:00
Shane Smiskol
9287a69624
Revert "card: create pedal pressed event" ( #32414 )
...
Revert "card: create pedal pressed event (#32393 )"
This reverts commit d18da895d3 .
2024-05-13 14:25:22 -07:00
Shane Smiskol
d18da895d3
card: create pedal pressed event ( #32393 )
...
* move pedalPressed to card
* rm
* needs to be a builder
* move these
* clean up
* reader later
* Update ref_commit
2024-05-13 14:15:26 -07:00
Shane Smiskol
3dfb6d7931
CarInterface: move stateless, common car events to car interface ( #32394 )
...
* move stateless, common car events to car interface
* try to reduce process replay diff a bit
* Revert "try to reduce process replay diff a bit"
This reverts commit b12798deabea67c5a636d6e70e80a3c21c7225ff.
* update refs
2024-05-13 12:50:42 -07:00
Jason Wen
9e3f57d53e
Merge branch 'master' into SP-59-sync-priv-20240507
2024-05-09 15:48:29 -04:00
Jason Wen
11351823ef
GAC: Remove from sunnypilot
2024-05-07 04:05:11 -04:00
Jason Wen
abb18380a1
Merge branch 'upstream/openpilot/master' into sync-20240502
...
# Conflicts:
# cereal
# common/params.cc
# opendbc
# panda
# selfdrive/car/chrysler/carcontroller.py
# selfdrive/car/honda/carstate.py
# selfdrive/car/honda/fingerprints.py
# selfdrive/car/honda/hondacan.py
# selfdrive/car/honda/interface.py
# selfdrive/car/honda/values.py
# selfdrive/car/hyundai/carcontroller.py
# selfdrive/car/hyundai/carstate.py
# selfdrive/car/hyundai/hyundaican.py
# selfdrive/car/hyundai/interface.py
# selfdrive/car/hyundai/values.py
# selfdrive/car/subaru/carstate.py
# selfdrive/car/subaru/interface.py
# selfdrive/car/torque_data/override.toml
# selfdrive/car/torque_data/params.toml
# selfdrive/car/toyota/carcontroller.py
# selfdrive/car/toyota/carstate.py
# selfdrive/car/toyota/interface.py
# selfdrive/car/toyota/toyotacan.py
# selfdrive/controls/lib/longitudinal_planner.py
# selfdrive/modeld/modeld.py
# selfdrive/monitoring/dmonitoringd.py
# selfdrive/ui/qt/onroad/annotated_camera.cc
Revert "remove STM32F2 sources (#1873 )"
This reverts commit 7bfba5ef
2024-05-04 23:49:28 -04:00
Adeeb Shihadeh
afc96972c8
car: CarController and CarState are always present ( #31925 )
...
* always set
* add mock
* little more
* fix
* fix
2024-03-19 14:16:33 -07:00
Adeeb Shihadeh
3a7582d9a6
Abstract out common CarInterface.apply ( #31924 )
2024-03-19 13:46:31 -07:00
Shane Smiskol
d5852ab1b3
CarInterface: no platform config fallback ( #31873 )
...
* no mock default
* rm
2024-03-14 22:27:32 -07:00
Justin Newberry
ca5a2ed942
move getting platform to get_params ( #31871 )
...
* better
* string
* not here
2024-03-14 21:58:25 -07:00
Kacper Rączy
ecce4663d3
RadarInterfaceBase: remove no_radar_sleep field ( #31715 )
...
Remove no_radar_sleep field from base radar interface
2024-03-05 16:45:47 -08:00