Commit Graph

45 Commits

Author SHA1 Message Date
Jason Wen
f837b5b40f Carcontroller: consolidate can sends method imports (#29695)
* Carcontroller: consolidate can sends method imports

* fix

* ruff
old-commit-hash: 7fbb7254fa
2023-08-29 10:51:50 -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
Shane Smiskol
4cf0ce33d5 steer limits: rename common dist to meas function (#27453)
* rename function

* make a wrapper function (ford uses dynamic up/down limits

* make two functions consistent

* make torque function convert to int
old-commit-hash: 581fd62d26
2023-02-26 17:32:52 -08:00
Shane Smiskol
acc8e38111 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
old-commit-hash: 8f5057ff2d
2023-02-09 15:37:39 -08:00
Shane Smiskol
e66e4d8af2 Lateral jerk unit test (#25759)
* stash

* more test

* less test

* clean test

* no angle

* add tolerance

* fix gm

fix gm

* test both

* lower some rates on hkg

* stash

* simpler

* bump panda

* Revert "bump panda"

This reverts commit f2137c221145cca723fe6ee3378ba947b7061965.

* only torque

* make kona pass

* duplicate __init__

* move

* half clean up

* half clean up

* more clean up

* more clean up

* fix static analysis

* calculate over 0.5 seconds

* limit to max steer

* type annotation

* calc once
old-commit-hash: aab33b1c5f
2022-12-15 21:52:07 -08:00
Shane Smiskol
ec9060c7ba CarController: log steer sent to the car (#26743)
* log value sent to the car

* rename

* bump

* Update ref_commit
old-commit-hash: f36a3664b0
2022-12-10 02:03:40 -08:00
Shane Smiskol
890d63840d Chrysler: fix LKAS fault for 2017 Pacifica (#26711)
* gate on FW

* fix

* reverse docs

* fix

* Revert "fix"

This reverts commit a0f2558fba0adc59c70eb92ffb8bd815bf033979.

Revert "reverse docs"

This reverts commit 9a46c517dfa7182f2f30501de801e35f7e1004c4.

Revert "fix"

This reverts commit 7b4d4bd3d2c2216890ea1877d52fdfbd9cec3ed7.

Revert "gate on FW"

This reverts commit 296826e71323e63f8e57b8988e573cef33149022.

* use a flag

* fix

* draft

* clean up

* clean up

* more clear

* comment

* remove
old-commit-hash: a7fb5da6e5
2022-12-07 12:04:33 -08:00
Adeeb Shihadeh
15e9bc319b Chrysler: ensure control bit is high before torque cmd (#25465)
* Chrysler: ensure control bit is high before torque cmd

* move that & update refs

* check control bit too
old-commit-hash: e0e0aad144
2022-08-17 15:20:18 -07:00
Adeeb Shihadeh
5263356958 remove CS.steeringRateLimited (#25251)
* remove CS.steeringRateLimited

* bump cereal

* update refs
old-commit-hash: d462a08056
2022-07-24 14:56:55 -07:00
Adeeb Shihadeh
04af978260 let can packer handle counter (#25240)
* let can packer handle counter

* diff is expected

* update refs

* clean that up

* bump opendbc

* fix sim
old-commit-hash: 0ca62bf7df
2022-07-21 20:54:53 -07:00
Adeeb Shihadeh
c7507bba29 Chrysler: never drop control bit on older models (#25159)
* Chrysler: never drop control bit on older models

* update refs
old-commit-hash: d5719913a9
2022-07-13 13:22:30 -07:00
Adeeb Shihadeh
9d1f2d9b8e Chrysler: send LKAS control bit while above minSteerSpeed (#25150)
* Chrysler: send LKAS control bit while above minSteerSpeed

* update refs

* rework that a bit

* little more

* update refs
old-commit-hash: 97d7ee369b
2022-07-12 23:11:55 -07:00
Adeeb Shihadeh
2e200db8fe Chrysler: limit buttons to 20Hz (#25125)
* Chrysler: limit buttons to 10Hz

* cleanup

* 20hz
old-commit-hash: 614b3a01f8
2022-07-11 22:10:06 -07:00
HaraldSchafer
be57ba1b0f Ram 1500 torque tune (#25117)
* torque control again

* 3mss per s

* no bad sensors

* tweaks

* Need more checks before we can do this

* update refs

* only ram for now

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: bdfaa1d1ee
2022-07-11 15:19:55 -07:00
Adeeb Shihadeh
7143eb7d0a Chrysler: resume from cruise standstill (#25009)
* Chrysler: resume from cruise standstill

* bump panda

* resume isn't set yet
old-commit-hash: ea80ee0845
2022-07-07 09:40:04 -07:00
Adeeb Shihadeh
7d042460a4 Ram 1500 (#24878)
* RamInit

* bump submodules

* lil cleanup

* clean up carstate formatting and platform grouping

make tuple

* give it a gold torque star (looks around 2.4 from rough data)

* Dasm Fault

* bump panda

* more cleanup

* cleanup car state

* more cleanup

* some fixes

* remove more stuff

* fix angle signal scaling and fix lkas control bit

* bump panda

* update those

* same limits as pacifica

* cleanup hud alert building

* better fault logic

* fix rate

* set ahb

* bring that back

* update refs

Co-authored-by: Jonathan <jraycec@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 9b0acacf5e
2022-07-06 23:42:07 -07:00
realfast
dda0f8186e Chrysler: carState signals update (#24760)
* carstate update

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 38ff2982eb
2022-06-30 17:27:35 -07:00
Shane Smiskol
ff6cf66269 Chrysler: reduce ACC faults when disengaging on gas (#24445)
old-commit-hash: ed41b14b55
2022-05-07 01:23:19 -07:00
Shane Smiskol
3fd58709ca Chrysler: clean up CarController (#24337)
* clean up

* max range is 15

* use wheel buttons counter and clean up

* no

* try spamming 10 times with next counter value

* try 50 hz

* this is dead code

* revert behavior changes, just clean up

* revert more

* also that

* no multiline can creation

* sort imports
old-commit-hash: 3f0b06b16e
2022-05-03 13:17:24 -07:00
Adeeb Shihadeh
b74dac6080 cars: cleanup CS usage (#23957)
old-commit-hash: 2219cb4478
2022-03-18 15:39:22 -07:00
Willem Melching
7b3e330def 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
old-commit-hash: 4f1eb4278a
2021-12-16 13:08:20 +01:00
qadmus
1b8d4b1eef int(round()) on apply_steer for correct comparison after rate limiting (#20425)
old-commit-hash: 0d61d8a4b6
2021-03-22 13:01:33 +01:00
Drew Hintz
15f51babda include PACIFICA_2020 in late-model behavior (#20399)
These models need to turn off gone_fast_yet bit at -3 to avoid LKAS
faults.

This was likely an accidental omission from PR #1297
To avoid future similar mistakes, we could define a list of these cars
in values.py instead of having the list in multiple places.
old-commit-hash: 01f20229cb
2021-03-18 17:29:36 -07:00
Willem Melching
4daa6f05cf Move all CarControllerParams into values.py (#19663)
* toyota

* use scale from values.py

* nissan

* subaru

* honda

* gm

* toyota combine into CarControllerParams

* nissan refactor

* chrysler refactor

* mazda refactor

* hyundai refactor

* subaru refactor
old-commit-hash: e4cf43c6fc
2021-01-06 11:20:44 +01:00
Adeeb Shihadeh
39d98d3d2d Car cleanup (#1924)
* cleanup car code

* more pruning

* little more

* less pylint disables

* radar stuff

* fix

* udpate refs

* fix honda bosch

* fix test
old-commit-hash: 892e1162c0
2020-07-25 15:07:27 -07:00
Adeeb Shihadeh
9823f1164c enable flake8 E303: too many blank lines
old-commit-hash: f3dcf861c7
2020-05-31 17:21:11 -07:00
Adeeb
2087fb940b Chrsyler: calculate checksum in CAN packer (#1438)
old-commit-hash: 6ff08f8dee
2020-04-30 15:43:59 -07:00
Adeeb
15916d03f4 Abstract pcmEnable and pcmDisable events (#1350)
* don't need individual prev state vars since whole CS is copied

* don't need a whole function since toyota alerts were simplified

* better here

* abstract pcmEnable/pcmDisable events

* the flippening came to NEOS

* delete

* unused

* Revert "the flippening came to NEOS"

This reverts commit 91cfb73b2914f637863335f4e5f5952620b3e977.
old-commit-hash: 8d791d78dd
2020-04-10 16:12:58 -07:00
Willem Melching
2d44c22265 Merge 2019 and 2020 Chrysler Pacifica Hybrid (#1142)
* Merge 2019 and 2020 Chrysler Pacifica Hybrid

* fix carcontroller

old-commit-hash: 85e8bb90d4
2020-02-20 16:23:10 -08:00
Adeeb
0468c42f22 Abstract CarInterface init (#1131)
* abstract CarInterface init

* unused

* subaru

* gm cleanup

* vw

* typo

* carcontroller

* more cleanup

* fix vw

old-commit-hash: 13f60eae91
2020-02-19 20:37:07 -08:00
rbiasini
0c0dd4c743 Chrysler: carstate returns capnp struct directly (#1110)
* Before abstraction, adding speed init from VW as well

* strting to abstract carstate class

* fix bug and update lock?

* revert pipfile change

* another bug

* fix linter

* bug fix

* remove a bunch of diplicated kf code

* better to not have class vars. will abstract __init__ anyway later

* abstract common instance vars in carstate init and a generic gear parser static method

* abstract gear parser for chrysler

* abstract gm gear parser too

* remove unnecessary random vars

* Chrysler: carstate returns capnp struct directly

* revert ref commit

* test ref

* ops, missed this conflict

* not sure why this got deleted

* no need to copy

* remove copy import

Co-authored-by: Willem Melching <willem.melching@gmail.com>

old-commit-hash: 703eb511da
2020-02-17 13:35:51 -08:00
Drew Hintz
f5722f8353 support for Chrysler Pacifica 2020 Hybrid (#1021)
* support for Chrysler Pacifica 2020 Hybrid
Thanks to Benson in Discord.
Example segment: 8190c7275a24557b|2020-01-29--08-33-58--7

* Add relevant route to selfdrive/test/test_car_models.py

* fix segment test name

old-commit-hash: 5aff2b6885
2020-02-03 09:17:45 -08:00
Adeeb
cf26bb52b5 Clean up ECU redundancy in selfdrive/car/* (#963)
* clean up ecu redundancy in selfdrive/car

* clean up gear parsing

old-commit-hash: dafdb79db2
2020-01-18 23:35:10 -08:00
George Hotz
9ef085076b selfdrive/car
old-commit-hash: 71ead9adea
2020-01-17 10:58:43 -08:00
George Hotz
81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Vehicle Researcher
99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a
2019-12-13 13:03:08 -08:00
Vehicle Researcher
b713eae9f8 openpilot v0.6.6 release
old-commit-hash: d7f0b402a8
2019-11-04 15:13:52 -08:00
Vehicle Researcher
89d1d84c70 openpilot v0.6.5 release
old-commit-hash: cf80f7a28b
2019-10-09 18:43:53 +00:00
Vehicle Researcher
dfe603c178 openpilot v0.6.4 release
old-commit-hash: 61229779e4
2019-09-09 23:03:02 +00:00
Vehicle Researcher
02cedeadd9 openpilot v0.6.3 release
old-commit-hash: d5f9caa82d
2019-08-13 01:36:45 +00:00
Vehicle Researcher
e47a2e6e30 openpilot v0.5.13 release
old-commit-hash: dd34ccfe28
2019-06-06 04:38:45 +00:00
Vehicle Researcher
0932b367bd openpilot v0.5.12 release
old-commit-hash: 3f9059fea8
2019-05-16 13:20:29 -07:00
Drew Hintz
df649841fc 📋📷 2019 Chrysler Pacifica and 2019 Jeep Grand Cherokee support (#590)
* 2019 Chrysler Pacfica and 2019 Jeep Grand Cherokee support, along with likely support for arbitrary models.
This is done by copying most values from the stock LKAS camera which is active with https://github.com/commaai/panda/pull/177

* No longer send LKAS_HEARTBIT because Panda now forwards it for us.

* Pacifica Hybrid 2018 combine fingerprints, add 808: 8

* panda chrysler: forward bus 0 to bus 2
copy of Panda commit: 1049502644

old-commit-hash: 1efa3f0eba
2019-04-04 22:48:37 -07:00
Nigel Armstrong
1341ee772e Chrysler updates (#537)
* Chrysler updates

* Update openDBC

old-commit-hash: 15fa6664c0
2019-02-21 23:23:40 -08:00
Vehicle Researcher
3bde47d556 openpilot v0.5.8 release
old-commit-hash: b967da5fc1
2019-01-23 15:34:52 -08:00