-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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 Radarless: Create&send buttons to camera when engaged. #31022
Closed
Closed
Changes from 16 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
e32bfa8
Honda Radarless: Send buttons to camera when engaged vs forwarding or…
csouers 4d0256b
fix that
csouers 8f8d952
Merge remote-tracking branch 'upstream/master' into honda_scm_pr
csouers 494a82f
Merge remote-tracking branch 'upstream/master' into honda_scm_pr
csouers 803affb
revert. don't think it's needed
csouers 8867288
Merge remote-tracking branch 'upstream/master' into honda_scm_pr
csouers 797c879
name
csouers 995a050
comment
csouers 20e0ebd
less. momentary press for auto resume and lkas button
csouers f4053b0
comment
csouers 4d50ccf
shorter
csouers aeb4e94
Merge remote-tracking branch 'upstream/master' into honda_scm_pr
csouers c3a138a
Merge remote-tracking branch 'upstream/master' into honda_scm_pr
csouers e62c43c
update these
csouers 6f3fd1b
Merge remote-tracking branch 'upstream/master' into honda_scm_pr
csouers bd11479
Merge remote-tracking branch 'upstream/master' into honda_scm_pr
csouers 209cab0
Merge remote-tracking branch 'upstream/master' into honda_scm_pr
csouers b85baaa
Merge remote-tracking branch 'upstream/master' into honda_scm_pr
csouers 9bc79f2
rename
csouers a21935f
remove LKAS button from CC
csouers 2773f80
rm the rest
csouers cd4ddf7
Merge remote-tracking branch 'upstream/master' into honda_scm_pr
csouers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,7 +167,8 @@ def create_ui_commands(packer, CAN, CP, enabled, pcm_speed, hud, is_metric, acc_ | |
commands.append(packer.make_can_msg("ACC_HUD", CAN.pt, acc_hud_values)) | ||
|
||
lkas_hud_values = { | ||
'SET_ME_X41': 0x41, | ||
'ENABLED': 1, | ||
'SET_ME_X20': 0x20, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this maintain both MSB 30 and There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are still just for LKAS. I will rename |
||
'STEERING_REQUIRED': hud.steer_required, | ||
'SOLID_LANES': hud.lanes_visible, | ||
'BEEP': 0, | ||
|
@@ -201,11 +202,17 @@ def create_ui_commands(packer, CAN, CP, enabled, pcm_speed, hud, is_metric, acc_ | |
return commands | ||
|
||
|
||
def spam_buttons_command(packer, CAN, button_val, car_fingerprint): | ||
def create_buttons_command(packer, CAN, button_val, setting_val, stock_scm_buttons, car_fingerprint): | ||
values = { | ||
'CRUISE_BUTTONS': button_val, | ||
'CRUISE_SETTING': 0, | ||
'CRUISE_BUTTONS': button_val | ||
} | ||
# Radarless: set CRUISE_SETTING & forward unmodified data bits | ||
if len(stock_scm_buttons): | ||
values.update({ | ||
'CRUISE_SETTING': setting_val, | ||
'BOH_1': stock_scm_buttons['BOH_1'], | ||
'BOH_2': stock_scm_buttons['BOH_2'], | ||
}) | ||
# send buttons to camera on radarless cars | ||
bus = CAN.camera if car_fingerprint in HONDA_BOSCH_RADARLESS else CAN.pt | ||
return packer.make_can_msg("SCM_BUTTONS", bus, values) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rename enabled to something more clear? We have LDW_ON/OFF in the same message. Is
ENABLED
meant to be LKAS active or just enabled?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just enabled.
available
orready
might be a good alternative.