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

[DRAFT] Sending CAN messages on peripherals 1 and 2 #142

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

sethbaird01
Copy link

No description provided.

@sethbaird01 sethbaird01 self-assigned this Nov 9, 2024
@sethbaird01 sethbaird01 requested a review from ColexDev November 9, 2024 18:19
periph = DEFAULT_PERIPHERAL_NODE

if 'can_peripheral_override' in msg:
periph = msg['can_peripheral_override']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation seems a bit too deep. I have no idea if python will get mad at this or not.

filter_bank_periph = {"CAN1": 0, "CAN2": 14}
filter_bank_max_periph = {"CAN1": 14, "CAN2": 27}

# these lines were default behavior, just moved into tuples above and symbols renamed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small thing, if you are talking about lines 85-87, those are dictionaries and not tuples.

@ColexDev
Copy link
Member

Looking good, we should probably do a bit more testing before merging though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants