Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honda: Odyssey 2021-25 (dashcam only) #33708

Draft
wants to merge 71 commits into
base: master
Choose a base branch
from
Draft
Changes from 59 commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
c52c637
AF: sentry for fw id capture
csouers Sep 10, 2024
18c1144
Honda Odyssey 21-24
csouers Sep 8, 2024
f96f612
Merge remote-tracking branch 'upstream/master' into test_odyssey_c3
csouers Sep 10, 2024
35b0a60
ignore. only once per file?
csouers Sep 10, 2024
5aba47b
nope
csouers Sep 10, 2024
4053296
bump dbc
csouers Sep 12, 2024
0d41d58
bring back alert only if have gone fast enough
csouers Sep 21, 2024
c3fed94
add test
csouers Sep 21, 2024
c943f02
comment
csouers Sep 21, 2024
6a74663
works with pytest
csouers Sep 22, 2024
b898b8e
test almost done. more car specific
csouers Sep 23, 2024
f851514
more
csouers Sep 23, 2024
e44060c
mas
csouers Sep 23, 2024
9d82925
test done. little fixes. replay looked good.
csouers Sep 24, 2024
5dec81d
bump dbc
csouers Sep 24, 2024
dcd1d88
bump dbc. history may be weird here
csouers Sep 24, 2024
bc2a29c
Merge remote-tracking branch 'upstream/master' into test_odyssey_c3
csouers Sep 24, 2024
1cd78de
bump dbc
csouers Sep 24, 2024
23996e4
add footnote. big diff because generator
csouers Sep 24, 2024
078a7de
bump dbc
csouers Sep 25, 2024
2da0e79
bump dbc
csouers Sep 25, 2024
375bf39
car docs
csouers Sep 25, 2024
b6d7666
bump dbc
csouers Sep 25, 2024
f10cb63
test for minsteer < 6mph
csouers Sep 25, 2024
8388165
bump dbc
csouers Sep 25, 2024
6d31b55
more test
csouers Sep 25, 2024
cfc944f
bump dbc
csouers Sep 25, 2024
1af28e7
comment
csouers Sep 28, 2024
52c848f
cleaner test
csouers Sep 28, 2024
618473f
rework
csouers Sep 28, 2024
80d55e3
reduce
csouers Sep 28, 2024
b008dec
bump dbc
csouers Sep 28, 2024
e2c1d74
Merge remote-tracking branch 'upstream/master' into test_odyssey_c3
csouers Sep 29, 2024
e29561e
fix test
csouers Sep 29, 2024
9e42c2b
condense
csouers Sep 29, 2024
38e6cd2
bump dbc
csouers Sep 29, 2024
8c8a136
unused
csouers Sep 29, 2024
35e0975
clean up
csouers Oct 2, 2024
3e600df
comment
csouers Oct 2, 2024
8abb345
comment
csouers Oct 2, 2024
74ed7ce
Merge remote-tracking branch 'upstream/master' into test_odyssey_c3
csouers Oct 2, 2024
2c32e3e
less
csouers Oct 2, 2024
ee5b211
better?
csouers Oct 2, 2024
5df39e9
revert
csouers Oct 2, 2024
75435a9
back to comma
csouers Oct 2, 2024
dd99ea8
revert
csouers Oct 2, 2024
96edcd0
revert. will generate later
csouers Oct 2, 2024
014cc7b
commas
csouers Oct 2, 2024
7fbe66c
more revert/cleanup
csouers Oct 2, 2024
6a01025
comment
csouers Oct 2, 2024
4266bc4
less
csouers Oct 2, 2024
b7c99d9
even faster
csouers Oct 2, 2024
76cc123
explain
csouers Oct 2, 2024
539160f
more comment
csouers Oct 2, 2024
debf20f
comment
csouers Oct 2, 2024
f00cc50
use cs
csouers Oct 2, 2024
026ed91
Merge remote-tracking branch 'upstream/master' into odyssey_pr
csouers Oct 2, 2024
693d348
comment
csouers Oct 2, 2024
9544a50
remove here
csouers Oct 2, 2024
33866a7
Merge remote-tracking branch 'upstream/master' into odyssey_pr
csouers Oct 3, 2024
dc29221
same thing really
csouers Oct 3, 2024
e889f58
update that
csouers Oct 3, 2024
5f754ab
Merge remote-tracking branch 'upstream/master' into odyssey_pr
csouers Oct 3, 2024
ae453f0
peace
csouers Oct 3, 2024
88f3d49
car doc
csouers Oct 3, 2024
0e87bf2
bump that now
csouers Oct 3, 2024
0404077
Merge remote-tracking branch 'upstream/master' into odyssey_pr
csouers Oct 3, 2024
10f7466
Merge remote-tracking branch 'upstream/master' into odyssey_pr
csouers Oct 3, 2024
f22c8b9
Merge remote-tracking branch 'upstream/master' into odyssey_pr
csouers Oct 3, 2024
654f938
not yet
csouers Oct 3, 2024
7bd8ed6
Merge remote-tracking branch 'upstream/master' into HEAD
csouers Oct 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions selfdrive/car/car_specific.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,23 @@ def update(self, CS: CarStateBase, CS_prev: car.CarState, CC_prev: car.CarContro
if self.CP.minEnableSpeed > 0 and CS.out.vEgo < 0.001:
events.add(EventName.manualRestart)

# Low speed steer alert logic; for cars with steer cut off above 6 m/s
# Show the alert earlier when slowing. Must first exceed a greater speed while engaged.
if CS.out.vEgo > (self.CP.minSteerSpeed + 3.5):
csouers marked this conversation as resolved.
Show resolved Hide resolved
CS.min_steer_alert_speed = (self.CP.minSteerSpeed + 1.5)
elif CS.out.vEgo <= self.CP.minSteerSpeed or not CC_prev.enabled:
CS.min_steer_alert_speed = self.CP.minSteerSpeed
self.low_speed_alert = (0 < CS.out.vEgo <= CS.min_steer_alert_speed) and self.CP.minSteerSpeed > 6.0
if self.low_speed_alert:
events.add(EventName.belowSteerSpeed)
csouers marked this conversation as resolved.
Show resolved Hide resolved

# Some cars forcibly disengage steering depending on vehicle conditions (i.e. some Odyssey Bosch & late model Acura RDX 3G).
# carState sets the steerFaultTemporary flag if controls are on and steering has not engaged within 1 second.
if CC_prev.latActive and not CS.steer_on: # type: ignore[attr-defined]
CS.steer_off_cnt += 1 # type: ignore[attr-defined]
else:
CS.steer_off_cnt = 0 # type: ignore[attr-defined]

elif self.CP.carName == 'toyota':
events = self.create_common_events(CS.out, CS_prev)

Expand Down
Loading