Shane Smiskol
eb52d701de
replace a bunch more cereal.car
10 months ago
Shane Smiskol
4359fa5c50
need to namespace to structs, since CarState is both class and struct
10 months ago
Shane Smiskol
b926893b34
remove some car.CarParams from the interfaces
10 months ago
Shane Smiskol
e8afc6ab56
type ret: CarParams, add more missing structs, revert lateralTuning changes (smaller diff!)
10 months ago
Shane Smiskol
d40da13e71
more lateralTuning
10 months ago
Shane Smiskol
8d961a12e5
selfdrive/car: ban common ( #33210 )
...
* ban all of common & copy numpy_fast
* add numpy_fast
* these are okay
* and ban controls
* better name
* Conversions
* do utils, kalman
* clean up
* sorting
* don't forget
10 months ago
Justin Newberry
b0eb3ba4f4
cars: platform enums -> prepend brand name ( #31927 )
...
* with brand name
* migrate
* Fix
* fixes
* more
* passes
* fix
* fix the doc
* collects
* these too
* more stuff
* body exception :/
* more
* hardcode i guess
* update ref
* toyota
* more toyota
* and here
* final!
* fix notebooks and ccs
* move this here
1 year ago
Adeeb Shihadeh
3a7582d9a6
Abstract out common CarInterface.apply ( #31924 )
1 year ago
Jason Wen
ab5c0f90b5
Mazda: Parse distance button from steering wheel ( #31765 )
...
* Mazda: Parse distance button from steering wheel
* Update selfdrive/car/mazda/interface.py
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
1 year ago
Shane Smiskol
638aaa9e53
Platform configs: move tire stiffness into config ( #31678 )
...
* first one to open PR
* mazda
* oh it is
* fix gm car specs and create MazdaCarSpecs
* fix
* do honda
* ruff
1 year ago
Shane Smiskol
eaf3332599
Revert "mazda"
...
This reverts commit b57d371626
.
1 year ago
Shane Smiskol
b57d371626
mazda
1 year ago
Justin Newberry
e122f1d749
Mazda: move to platform config ( #31647 )
...
* mazda platform config
* update ref
1 year ago
Adeeb Shihadeh
a9626f95b6
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 db5e13b991
.
* fix pm test
2 years ago
Jason Young
f76ffbdbbc
interfaces: add common STD_CARGO_KG to mass ( #29416 )
...
* cleanup std_cargo_kg
* fix Sonata mass
* remove snowflake construct
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2 years ago
Jason Young
90c4bbe8e4
car interfaces: cleanup tire stiffness calculation ( #28263 )
...
* cleanup tire stiffness calculation
* bump cereal
* think these todos still apply
* gm: same default
* revert comments
* bump
* update refs
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2 years ago
Shane Smiskol
5aebdb0ad0
Car docs: pass docs flag to car interfaces ( #27311 )
...
* docs
* docs
* docs
* docs
* use docs in gm
2 years ago
Shane Smiskol
8f5057ff2d
GM: enforce steering command message timing ( #27250 )
...
* 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
2 years ago
Adeeb Shihadeh
6fa9b555a4
rename carState.radarOffCan to radarUnavailable ( #27187 )
...
* rename carState.radarOffCan to radarUnavailable
* bump cereal
2 years ago
Shane Smiskol
860f441e2f
Car interface: set common params after port ( #26613 )
...
* remove pylint exception, _get_params takes no defaults
* clean up
* mock uses it too
* unused
* unused
* fix that
* bump
* Update selfdrive/car/interfaces.py
3 years ago
Shane Smiskol
5356216e92
remove unused compute_gb ( #25808 )
3 years ago
Adeeb Shihadeh
655a64b603
single longitudinal toggle for e2e and disable radar ( #25688 )
...
* single longitudinal toggle for e2e and disable radar
* write disable radar param
* rename
* better param name
* clean that up
* update refs
* update translations
* not live for experimental
* write it out
* vanish
3 years ago
Adeeb Shihadeh
347455325e
Mazda: use torque controller ( #25265 )
...
* Mazda: use torque controller
* update refs
* update refs
3 years ago
Shane Smiskol
d2c2154a32
Clean up CarControllers ( #25008 )
...
* do VW
* Do the rest
* unused
* ford cc formatting
* final clean ups
* also just return update output
3 years ago
HaraldSchafer
9283040d84
Rocket league model ( #24869 )
...
* dd9a502d-c8e2-4831-b365-804b0ae0739d/600 80041070-d276-4fed-bdb9-0075e5442908/420
* no elementwise op
* 9dabf0fe-2e60-44bf-8d3a-d20a74aca072/600 ae746590-0bb5-4a16-80db-15f02d314f03/300 c4663a12-b499-4c9b-90dd-b169e3948cb1/60
* explicit slice
* some copies are useful
* 1456d261-d232-4654-8885-4d9fde883894/440 c06eba55-1931-4e00-9d63-acad00161be0/700 af2eb6ba-1935-4318-aaf8-868db81a4932/425
* 154f663e-d3e9-4020-ad49-0e640588ebbe/399 badb5e69-504f-4544-a99e-ba75ed204b74/800 08330327-7663-4874-af7a-dcbd2c994ba7/800
* set steer rate cost to 1.0
* smaller temporal size
* Update model reg
* update model ref again
* This did upload somehow
* Update steer rate cost
Co-authored-by: Yassine Yousfi <yyousfi1@binghamton.edu>
3 years ago
Adeeb Shihadeh
49c2164814
add alert for CAN bus timeout ( #24162 )
...
* add alert for CAN bus timeout
* add alert
* set in interface
* cleanup
* cleanup
* add event
* fix mock
* bump
* bump opendbc
* update refs
* return reader
3 years ago
Adeeb Shihadeh
bae78dd46b
don't read params in car interfaces ( #23978 )
3 years ago
Adeeb Shihadeh
5c3f3e44bc
break up selfdrive.config ( #23959 )
...
* break up selfdrive.config
* add to release files
* fix import order
3 years ago
Jafar Al-Gharaibeh
341f5a4ae0
Mazda CX-5 2022 Car port ( #23704 )
...
* Mazda CX5 2022 FW
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* CX-5 2022: No lockout and steer down to zero
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* CX-5 2022: No dashcam!
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* CX-5 2022: add to supported cars
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Mazda: stick with 800 max torque for now
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Update docs/CARS.md
* Apply suggestions from code review
* Mazda: set car models where needed
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Mazda: set minSteerSpeed per car
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* unused
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* cleanup
* Update selfdrive/car/mazda/interface.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
Jafar Al-Gharaibeh
1c31c9b7a3
Mazda: alert when LKAS is disabled ( #23288 )
...
* Mazda: alert when LKAS is disabled
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* update refs
* revert that
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
Dean Lee
a653461dec
check in tuple instead of list ( #23477 )
...
* 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>
3 years ago
Adeeb Shihadeh
c92199ab1a
Revert "Mazda: alert when LKAS is disabled ( #23273 )"
...
This reverts commit f25121b736
.
4 years ago
Jafar Al-Gharaibeh
f25121b736
Mazda: alert when LKAS is disabled ( #23273 )
...
* Mazda: alert when LKAS is disabled
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Update selfdrive/controls/lib/events.py
* Update selfdrive/car/mazda/interface.py
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Willem Melching
4f1eb4278a
Log actuators after applying rate limits in CarController ( #23230 )
...
* return actuators from carcontroller
* log it
* pass to latcontrol
* chrysler
* gm
* honda
* more brands
* rest of the brands
* gm cleanup
* hyundai cleanup
* update ref
* rename field
* fix subaru
* add types
* more subaru fixes #23240
* consistent whitespace
* bump cereal
4 years ago
Adeeb Shihadeh
2252c6bba7
Mazda: move CX-9 out of dashcam mode ( #22717 )
...
* move cx9 out of dashcam
* no alc below 28
* process replay route
4 years ago
Adeeb Shihadeh
1848fed6e2
Mazda: send dash alerts ( #22730 )
...
* Mazda: send dash alerts
* no actuators
* ldw
* send alerts
* test
* use cam parser
* add generic toggle
* wip
* revert some stuff
* try that
* steer required works
* cleanup
* bump panda
* little more cleanup
* no lane lines
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
4bbeb27f9b
Mazda: allow engaging below min LKAS speed ( #22737 )
...
* Mazda: allow engagement below minimum LKAS speed
* bump panda
* bump panda
4 years ago
Robbe Derks
91987f38d4
Make pandaState and safetyMode a list ( #22454 )
...
* wip: move to pandaStates
* bump cereal
* wip: SafetyMode struct
* move to safetyMode
* fix typo
* this can be None
* fix potential empty pandaStates list
* fix thermald
* fix controlsd
* rename safetyModes to safetyConfigs
* update process_replay
* fix test_models
* bump cereal
4 years ago
Adeeb Shihadeh
649af76fd4
remove community supported cars from community features ( #22330 )
...
* remove community supported cars from community features
* remove bosch and hkg long
* remove test case
* update refs
4 years ago
Jafar Al-Gharaibeh
ff704e18b7
Car Port: Mazda CX-9 2021 ( #20864 )
...
* Mazda CX-9 no steer lockout, and newer cars can use more torque
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Mazda CX-9 2021 test route
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* cleanup
* more cleanup
* don't show community features alert if dashcam only
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Adeeb Shihadeh
c72d163e14
deprecate CP.enableCamera ( #21509 )
...
* deprecate CP.enableCamera
* more removal
* one more
* update refs
4 years ago
Jafar Al-Gharaibeh
56fbf66c20
Add Mazda 6 and new FW for other models ( #21167 )
...
* Add support for Mazda6
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* New FWs and Mazda 6 test route
Change Mazda to MAZDA
Mazda6 test route
CX-5 2018 FW
CX-5 2019 Australia FW
CX-9 2016 FW
Mazda3 2014 FW
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
4 years ago
Igor
093456cc40
Parametrize MIN_CAN_SPEED in car interfaces ( #2684 )
...
* Parametrize MIN_CAN_SPEED in car interfaces
* fixed instance in planner.py
* fix typo
* var name change
* changed var name to minSpeedCan for consistency with other uses of CAN in the capnproto files
* added default value to get_std_params, removed unneeded instances from car interface files
* Revert PEP8 autoformat corrections
* update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
5 years ago
Adeeb Shihadeh
47c21f10f5
grey panda is unsupported ( #2458 )
5 years ago
Adeeb Shihadeh
a81a18205e
type hints for alerts and fix community feature alert ( #2196 )
...
* fix startup alert for community features
* type hints for alerts
* more type hints
* fix dashcam only alerts
* more type hints
5 years ago
Jafar Al-Gharaibeh
6c292c3f0c
Split car identities to CX5, CX9, and Mazda3 ( #2097 )
...
Add test routes for CX9 and Mazda3
CX9: "10b5a4b380434151|2020-08-26--17-11-45"
Mazda3: "74f1038827005090|2020-08-26--20-05-50"
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
5 years ago
Adeeb Shihadeh
892e1162c0
Car cleanup ( #1924 )
...
* cleanup car code
* more pruning
* little more
* less pylint disables
* radar stuff
* fix
* udpate refs
* fix honda bosch
* fix test
5 years ago
Jafar Al-Gharaibeh
73db079199
Fix rounding of minSteerSpeed in events ( #1620 )
...
I thought I was missing a rounding in Mazda code, but it turned
out to be a missing rounding after the recent event refactoring
Python3 interpreter:
>>> print(" %d %d" % (1.6,1.4))
1 1
>>> print(" %d %d" % (round(1.6),round(1.4)))
2 1
>>> print(" %d %d" % (int(round(1.6)),round(1.4)))
2 1
>>> print(" %d %d" % (int(round(1.6)),int(round(1.4))))
2 1
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
5 years ago
Adeeb
165bcf1f31
Fix speed too low ( #1627 )
...
* fix speed too low
* bump ref
Co-authored-by: Willem Melching <willem.melching@gmail.com>
5 years ago
Willem Melching
843a64c72f
Make pylint more strict ( #1626 )
...
* make pylint more strict
* cleanup in progress
* done cleaning up
* no opendbc
5 years ago