Skip to content

Commit

Permalink
Add A calypso build check, (#219)
Browse files Browse the repository at this point in the history
* add a calypso build

* add to mpu the versioning

* remove  docker container

* it be annoying

* why doesnt it understand zero

* some fixes

* add shep

* fix duplicate key
  • Loading branch information
jr1221 authored Dec 29, 2024
1 parent 96746ba commit a799851
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/build_calypso.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check CAN, build Calypso
on:
push:
paths:
- 'cangen/**'

jobs:
run-build:
runs-on: ubuntu-latest
steps:
- name: Clone Calypso
uses: actions/checkout@v4
with:
repository: Northeastern-Electric-Racing/Calypso

- name: Clone Embedded-base
uses: actions/checkout@v4
with:
path: "./Embedded-Base"

- name: Build Calypso
run: cargo build --locked
112 changes: 111 additions & 1 deletion cangen/can-messages/bms.json
Original file line number Diff line number Diff line change
Expand Up @@ -992,5 +992,115 @@
]
}
]
}
},
{
"id": "0x69A",
"desc": "Shepherd Version Tag",
"sim_freq": 1000,
"fields": [
{
"name": "BMS/Version/Tag",
"unit": "major.minor.patch",
"sim": {
"min": 0,
"max": 3,
"inc_min": 1,
"inc_max": 1,
"round": true
},
"points": [
{
"size": 8
},
{
"size": 8
},
{
"size": 8
}
]
},
{
"name": "BMS/Version/Dirty",
"unit": "bool",
"sim": {
"options": [
[
0,
0.95
],
[
1,
0.05
]
]
},
"points": [
{
"size": 8
}
]
},
{
"name": "BMS/Version/LocalCommit",
"unit": "bool",
"sim": {
"options": [
[
0,
0.95
],
[
1,
0.05
]
]
},
"points": [
{
"size": 8
}
]
}
]
},
{
"id": "0x69B",
"desc": "Shepherd Version Hash",
"sim_freq": 1000,
"fields": [
{
"name": "BMS/Version/ShortHash",
"unit": "hash",
"sim": {
"min": 0,
"max": 4294967295,
"inc_min": 1,
"inc_max": 1,
"round": true
},
"points": [
{
"size": 32
}
]
},
{
"name": "BMS/Version/AuthorHash",
"unit": "hash",
"sim": {
"min": 0,
"max": 4294967295,
"inc_min": 1,
"inc_max": 1,
"round": true
},
"points": [
{
"size": 32
}
]
}
]
}
]
110 changes: 110 additions & 0 deletions cangen/can-messages/mpu.json
Original file line number Diff line number Diff line change
Expand Up @@ -932,5 +932,115 @@
]
}
]
},
{
"id": "0x698",
"desc": "Cerberus Version Tag",
"sim_freq": 1000,
"fields": [
{
"name": "MPU/Version/Tag",
"unit": "major.minor.patch",
"sim": {
"min": 0,
"max": 3,
"inc_min": 1,
"inc_max": 1,
"round": true
},
"points": [
{
"size": 8
},
{
"size": 8
},
{
"size": 8
}
]
},
{
"name": "MPU/Version/Dirty",
"unit": "bool",
"sim": {
"options": [
[
0,
0.95
],
[
1,
0.05
]
]
},
"points": [
{
"size": 8
}
]
},
{
"name": "MPU/Version/LocalCommit",
"unit": "bool",
"sim": {
"options": [
[
0,
0.95
],
[
1,
0.05
]
]
},
"points": [
{
"size": 8
}
]
}
]
},
{
"id": "0x699",
"desc": "Cerberus Version Hash",
"sim_freq": 1000,
"fields": [
{
"name": "MPU/Version/ShortHash",
"unit": "hash",
"sim": {
"min": 0,
"max": 4294967295,
"inc_min": 1,
"inc_max": 1,
"round": true
},
"points": [
{
"size": 32
}
]
},
{
"name": "MPU/Version/AuthorHash",
"unit": "hash",
"sim": {
"min": 0,
"max": 4294967295,
"inc_min": 1,
"inc_max": 1,
"round": true
},
"points": [
{
"size": 32
}
]
}
]
}
]

0 comments on commit a799851

Please sign in to comment.