Commit Graph

51 Commits

Author SHA1 Message Date
Adeeb Shihadeh
952ca664fa Update Python packages and pre-commit hooks (#29739)
* Update Python packages and pre-commit hooks

* fix linter

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: 9719b22761
2023-08-31 15:00:13 -07:00
Shane Smiskol
c5a673b998 car interfaces: handle buttons changing state without going unpressed (#26463)
* rename function first and foremost

* the function

* comment

* move usages over

* probably fine

* comments

* btn

* single line

* not comments

* fix keyword

* is it not clear?

* noEntry while holding cancel

* bumpo

* remove

* better?

* better?

* try this

* try this

* loop

* better

* more clear

* Revert "more clear"

This reverts commit 37e0277e4bfe6f1c553dbbcece6f532a280be62e.

* no optional

* fine

* add comment

* clean up honda

* one line

* can also do this

* but unclear

This reverts commit 1984a72cc8680b23c202695b8aeeb1aa28f7160c.

* bumppanda
old-commit-hash: 24f5a6170d
2023-08-25 16:47:10 -07:00
Shane Smiskol
fca565cad1 car/__init__: missing ending newline
old-commit-hash: ed6e72ae1f
2023-08-25 00:43:29 -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
183515c04b Rename CivicParams (#29459)
* CivicParams -> ReferenceCarParams

* remove usage in interface

* better name

* revert
old-commit-hash: 8dcd108972
2023-08-17 21:02:09 -07:00
Justin Newberry
268fb070a8 Subaru: calculate steering angle rate (#29409)
* calculate rate

* added adeeb's comment

* move to selfdrive/car

* that makes way more sense

* much simpler

* fix rate

* preglobal doesn't have a counter

* update ref

* merge

* update ref after merging
old-commit-hash: 7ec52da33a
2023-08-15 15:28:46 -07:00
Jason Young
b4614b3c28 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>
old-commit-hash: 90c4bbe8e4
2023-08-15 14:17:08 -07:00
Shane Smiskol
6b7b6034b7 common_fault_avoidance: take a bool (#29328)
old-commit-hash: 2a38f38be1
2023-08-11 00:27:53 -07:00
Shane Smiskol
e3b5998998 Clean up common steer fault avoidance code (#29200)
* fix spacing

* more spacing

* better names and comments

* this default doesn't make sense

* or this

* explicitly boolean since latActive is
old-commit-hash: dba4492aa0
2023-08-01 14:02:15 -07:00
Justin Newberry
6c4a4e5d74 Homogenize Steering Fault Avoidance (#29140)
* fix subaru fault

* try this!

* wip

* try this

* this more or less worked

* this is all under gen2

* that needs to be up there

* comment

* steer_angle

* test

* wip

* wip

* sync

* wip

* cleanup

* remove print

* use sets and fix unittests

* common fault avoidance

* common fault avoidance

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* revert subaru to get this part merged

* revert name change

* revert name change

* revert name change

* same as before

* add test case

* also verify zero tolerance

* keep the current behavior

* split into multiple tests for easier debugging

* added comments and remove tests

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a19f8dce92
2023-08-01 10:27:06 -07:00
Shane Smiskol
28c64e4856 CanBusBase: fix offset calculation (#28938)
old-commit-hash: f99ac84b5c
2023-07-14 11:06:22 +01:00
Cameron Clough
5afe1c0ed0 selfdrive/car: reusable CanBus helper (#28489)
old-commit-hash: 28bf743693
2023-06-10 22:50:19 -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
a55f8d65cd Angle control: fix limiting bug (#27428)
* fix steer up bug

* Update ref_commit
old-commit-hash: d5688ae49f
2023-02-23 16:18:32 -08:00
Shane Smiskol
ae26b6fb0f Car controls: common angle limiting function (#26732)
* common angle limiting function

* save a line
old-commit-hash: 41667d020a
2022-12-08 16:26:41 -08:00
Jason Young
914c75d9ea Allow car port to define enable buttons (#25793)
* Allow car port to define enable buttons

* simplify

* oops
old-commit-hash: 135270f65c
2022-10-12 16:27:23 -07:00
Shane Smiskol
cfc3213ac1 ui: support ego speed hysteresis (#25702)
* toyota: match set speed from dash

* Use unit bit

* Use RSA2

* flip this

* Universal unit signal, set vEgoCluster

* remove this and bump opendbc

* detect if car interface sets cluster fields

* revert

* needs to be cp

* UI_SPEED is actually always in kph?

* forgot to actually convert it

* same in onroad

* try conv factor only for imperial

* Seems like UI_SPEED is not the UI speed at all

* the dash might floor it

* same openpilot behavior

* bump

* ego speed factor is dynamic across speeds, handle Lexus exceptions with
diff msg

* remove test, bump opendbc

* secret formula

* secret formula v2

* 1.03 is sufficient

* try short press

* bump opendbc

* surely this can be cleaned up

surely this can be cleaned up

* use filter

* redo factors

* try UI_SPEED again with a factor

try UI_SPEED again with a factor

* dash applies hysteresis to speed. this matches pretty well, but not exactly

* make hysteresis generic

* clean up

* revert this

* try this

* read from fake params

* should be mostly good for imperial now

* revert

* revert

* remove toyota stuff

* common function for everyone

* rm line

* fix

* an example with Toyota

* use CS.out

* one mph

* 1 kph

* cmt

* remove cmt

* abs it

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: ef26abcf65
2022-09-13 23:34:51 -07:00
Adeeb Shihadeh
2c85a11a31 expand fingerprint dict size for multipanda setups
old-commit-hash: baef4c1fb2
2022-08-17 15:30:20 -07:00
Shane Smiskol
3ba40da00a Honda: fix enabling before PCM (#24715)
* Don't enable for pcmCruise Honda

* make it a no entry as well

* do in another PR
old-commit-hash: 40deea7d7b
2022-06-02 22:06:01 -07:00
Shane Smiskol
ddf2d5b63c Button-enable cars: common functions for button events (#24678)
* function for creating button events

* fix

* one line

* alphabetical

alphabetical

* only needed once

* common function for enable events

* add to list

* extend

* fixes

* add type hints

* flip around
old-commit-hash: eed6803ccc
2022-06-01 12:03:34 -07:00
Dylan Herman
2dfba97175 add mypy check for return-any (#24379)
* add mypy check for return-any

* remove unused import

* typing

* remove unnecessary variable typing

* cleanup

* cleanup

* bump submodules

* small fixes

* only a problem on mac

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: d2eef1955c
2022-05-12 14:59:00 +02:00
Adeeb Shihadeh
5e6608b67e comma pedal: rename create_gas_command -> create_gas_interceptor_command
old-commit-hash: b07ddad6ed
2021-11-20 20:13:58 -08:00
Robbe Derks
58c99158a1 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
old-commit-hash: 91987f38d4
2021-10-08 17:54:34 +02:00
Adeeb Shihadeh
6d28491dbf Toyota: use FW query for DSU detection (#20615)
* Toyota: use FW query for DSU detection

* make sure we have at least some fw responses

* bool

* add test to test_startup

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a19d94ae2d
2021-04-20 14:32:34 +02:00
Greg Hogan
f646a64cce Honda CRV BSM alert from B-CAN (#1867)
old-commit-hash: 825821f010
2020-07-21 17:41:45 +02:00
Willem Melching
a56e2b01f8 Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
old-commit-hash: 843a64c72f
2020-06-02 16:29:32 -07:00
Adeeb
5e857427ba Enable more flake8 checks (#1602)
* enable some more flake8 checks

* some more quick ones

* bump opendbc

* e401

* e711 e712

* e115 e116

* e222

* e301

* remove that

* e129

* e701 e702

* e125 e131

* e227

* e306

* e262

* W503

* e713

* e704

* e731

* bump opendbc

* fix some e722
old-commit-hash: d9bf9f0a40
2020-05-30 20:14:58 -07: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
89d1d84c70 openpilot v0.6.5 release
old-commit-hash: cf80f7a28b
2019-10-09 18:43:53 +00:00
dekerr
ae1fbf70fa Refactor default Civic params (#720)
* move civic params out

* fix variable name

* simplify ford scaling

* cleanup

* remove import dependency

* requested changes

* keep hyundai

old-commit-hash: 4a48ef8dbc
2019-07-08 16:59:32 -07:00
Vehicle Researcher
9abcfabc5f openpilot v0.6 release
old-commit-hash: 8a9ed94f5f
2019-06-28 21:11:30 +00:00
Vehicle Researcher
30f7a33535 openpilot v0.5.10 release
old-commit-hash: f74a201edc
2019-03-26 01:09:18 -07:00
Vehicle Researcher
3bde47d556 openpilot v0.5.8 release
old-commit-hash: b967da5fc1
2019-01-23 15:34:52 -08:00
Vehicle Researcher
e07d32c790 openpilot v0.5.3 release
old-commit-hash: 285c52eb69
2018-09-03 16:43:12 -07:00
Vehicle Researcher
242328f92c openpilot v0.4.7 release
old-commit-hash: ae5cb7a0da
2018-06-16 20:59:34 -07:00
Vehicle Researcher
8fc7b0b828 openpilot v0.4.6 release
old-commit-hash: c6df34f55b
2018-05-23 03:59:04 +00:00
Vehicle Researcher
e4ba9edefa openpilot v0.4.4 release
old-commit-hash: 9a9ff839a9
2018-04-14 06:10:58 +00:00
Ted Slesinski
429954d582 2017 Honda Ridgeline (#198)
* Adds Honda Ridgeline

Replaced trim level placeholder

Adding 0x301 ridgeline message

(I restructured this slightly since we don't need to repeat `commands.append(make_can_msg(0x300, msg_0x300, idx, 1))` so many times

Updated dbc name

Use pedal_gas to detect gas pressed

Remove unnecessary signal check

Fix array notation

* Tire stiffness factor bumped to 1.5x

* Adds safety tests at line 133

* Revert "Adds safety tests at line 133"

This reverts commit 349edf5b1a879cac704db3786d0626211497bcb7.

* fix failing build due to syntax

* update variables for failing build

* Update interface.py

* Update Tire Slip Factor

old-commit-hash: 28b8043c5b
2018-04-12 19:12:45 -07:00
vanillagorillaa
14d6a991d5 Honda Pilot 2017 Port (#161)
* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update interface.py

* Update interface.py

* Update README.md

* Update README.md

* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update carstate.py

* Update hondacan.py

* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update carstate.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update carstate.py

* Update carstate.py

* Update Pilot Fingerprint

* Update fingerprints.py

* Give pilot its own definition and not use ILX

* add pilot argument

* Add Pilot interface

* Add pilot argument

* Update interface.py

* Parse Different gear on pilot

* Add steer max

* Fixed duplication of steer max value

* Adjust PID's for steering

* Update carcontroller.py

* Change Steer Ratio and wheelbase

* Update Steer fault values

Steer fault value of 3, does not seem to effect anything

* Update Kp,Ki Ratio

* Update interface.py

* Update readme for Pilot

* add pilot

* Update fingerprints.py

* Update carstate.py

* add signals

* add signal

old-commit-hash: 32e5d6cd15
2018-02-09 12:50:37 -08:00
Vehicle Researcher
4e867831f7 openpilot v0.4.2 release
old-commit-hash: 28c0797d30
2018-02-06 12:43:45 -08:00
vanillagorillaa
41f868c92a Acura RDX 2018 AcuraWatch Plus Port (#162)
* Adding Acura RDX alpha support 

old-commit-hash: 0dc6778548
2018-02-05 18:38:40 -08:00
Vehicle Researcher
0cc7ce25ab openpilot v0.4.1 release
old-commit-hash: 26e966852c
2018-01-30 12:58:14 -08:00
Ted Slesinski
dbbdedb331 Add odyssey fingerprint
old-commit-hash: 6752959d4a
2018-01-19 00:30:33 -05:00
Vehicle Researcher
d9578e2f8e openpilot v0.4.0.1 release
old-commit-hash: a77c0a1098
2017-12-23 17:15:27 -08:00
Vehicle Researcher
490307fe50 openpilot v0.3.9 release
old-commit-hash: 5627d0d7fd
2017-11-22 04:30:24 -08:00
Vehicle Researcher
81ebf6b142 openpilot v0.3.8.2 release
old-commit-hash: 187a70f760
2017-10-31 02:27:39 -07:00
Vehicle Researcher
2c0cc6103a openpilot v0.3.7 release
old-commit-hash: daf54ad54d
2017-09-30 19:05:03 -07:00
Vehicle Researcher
46e0ee7750 openpilot v0.3.4 release
old-commit-hash: 6f46f988d9
2017-07-28 03:23:57 -07:00