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

Versioning over CAN #143

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
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
45 changes: 45 additions & 0 deletions cangen/can-messages/mpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,51 @@ msgs:
- !CANPoint
size: 32

# versioning message, identical to shep
- !CANMsg
id: "0x698"
desc: "Cerberus Version Tag"
feilds:
- !NetField: # the version number
name: "MPU/Version/Tag"
unit: "major.minor.patch"
points:
- !CANPoint
size: 8
- !CANPoint
size: 8
- !CANPoint
size: 8
- !NetField: # whether there were uncommitted changes
name: "MPU/Version/Dirty"
unit: "bool"
points:
- !CANPoint
size: 8
- !NetField: # whether there were local commits not pushed to the remote
name: "MPU/Version/LocalCommit"
unit: "bool"
points:
- !CANPoint
size: 8

- !CANMsg
id: "0x699"
desc: "Cerberus Version Hash"
feilds:
- !NetField: # the short hash of the code when make was ran
name: "MPU/Version/ShortHash" # use `git show $(echo "obase=16; <value>")` to fetch
unit: ""
points:
- !CANPoint
size: 32
- !NetField: # a random commit hash of the individual's git name who ran make
name: "MPU/Version/AuthorHash" # use `git log --format=%an -1 -p $(echo "obase=16; <value>") | head -n 1` to fetch
unit: ""
points:
- !CANPoint
size: 32

# debugging only - use messages as needed, be sure to fill rest with FFs and only send from one place in code
- !CANMsg
id: "0x701"
Expand Down
Loading