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

CAN spec patches #218

Merged
merged 3 commits into from
Dec 21, 2024
Merged

CAN spec patches #218

merged 3 commits into from
Dec 21, 2024

Conversation

harrison-e
Copy link
Contributor

Changes

Calypso now validates the CAN spec in cangen/can-messages/ (see Northeastern-Electric-Racing/Calypso#85), and has exposed some minor flaws in the spec. This is a quick patch to fix them:

charger.json:

  • Message 0x18FF50E5 (Charger Box Status) is now byte aligned, adding up to 64 bits instead of 61 bits. Changed unused portion from 24 to 27 bits.

mpu.json:

  • Sim frequencies for NetField MPU/State/Mode now add to 1 instead of 1.01. Changed option 1 frequency from 0.80 to 0.78, and option 4 frequency from 0.00 to 0.01.
  • Sim frequencies for NetField MPU/State/ModeIndex now add to 1 instead of 1.2. Changed option 2 frequency from 0.4 to 0.2.
  • CANPoint 0 of NetField MPU/Sense/SOC no longer specifies endianness, since it's only 8 bits.

Test Cases

  • Calypso builds!!

@harrison-e harrison-e self-assigned this Dec 21, 2024
@harrison-e harrison-e requested a review from jr1221 December 21, 2024 21:20
Copy link
Contributor

@jr1221 jr1221 left a comment

Choose a reason for hiding this comment

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

fastest review?

@harrison-e harrison-e merged commit 96746ba into main Dec 21, 2024
1 of 2 checks passed
@harrison-e harrison-e deleted the changes/can-spec-rearrange branch December 21, 2024 21:22
@harrison-e
Copy link
Contributor Author

fastest review?

warrants a new GH achievement

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