Skip to content

Commit

Permalink
Shutdown Faults (#1196)
Browse files Browse the repository at this point in the history
### Summary
Created a shared app file for broadcasting shutdown node can data. Added
io layer implementations and CAN messages for BMS and FSM.

### Changelist 
Created new app_shdnLoop files, and new io files for BMS and FSM. 

### Checklist
*Please change `[ ]` to `[x]` when you are ready.*
- [x] I have read and followed the code conventions detailed in
[README.md](../README.md) (*This will save time for both you and the
reviewer!*).
- [x] If this pull request is longer then **500** lines, I have provided
*explicit* justification in the summary above explaining why I *cannot*
break this up into multiple pull requests (*Small PR's are faster and
less painful for everyone involved!*).

---------

Co-authored-by: Edwin <[email protected]>
  • Loading branch information
SigmaWrath and Lucien950 authored May 5, 2024
1 parent 42c6cf6 commit e3954a9
Show file tree
Hide file tree
Showing 34 changed files with 553 additions and 340 deletions.
2 changes: 1 addition & 1 deletion .idea/runConfigurations/Quadruna_BMS.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 28 additions & 15 deletions can_bus/quadruna/BMS/BMS_tx.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"State": {
"enum": "BmsState"
}
}
}
},
"AlertsContext": {
Expand Down Expand Up @@ -157,13 +157,13 @@
"max": 100,
"unit": "degC"
},
"Seg4Cell2Temp":{
"Seg4Cell2Temp": {
"resolution": 0.1,
"min": 0,
"max": 100,
"unit": "degC"
},
"Seg4Cell8Temp":{
"Seg4Cell8Temp": {
"resolution": 0.1,
"min": 0,
"max": 100,
Expand Down Expand Up @@ -272,7 +272,7 @@
},
"TractiveSystemPower": {
"resolution": 0.001,
"min": -100,
"min": -100,
"max": 100,
"unit": "kW"
}
Expand Down Expand Up @@ -348,17 +348,17 @@
}
},
"CommitInfo": {
"msg_id": 140,
"cycle_time": 100,
"description": "BMS Current Running Git Commit Info",
"signals": {
"Hash": {
"bits": 32
},
"Clean": {
"bits": 1
}
}
"msg_id": 140,
"cycle_time": 100,
"description": "BMS Current Running Git Commit Info",
"signals": {
"Hash": {
"bits": 32
},
"Clean": {
"bits": 1
}
}
},
"OWC_Segment0to2_Status": {
"msg_id": 141,
Expand Down Expand Up @@ -388,5 +388,18 @@
"bits": 16
}
}
},
"BMSShdnNodeStatus": {
"msg_id": 143,
"cycle_time": 100,
"description": "BMS Shutdown Node Status",
"signals": {
"HVDShdnOKStatus": {
"bits": 1
},
"TSIlckOKStatus": {
"bits": 1
}
}
}
}
31 changes: 22 additions & 9 deletions can_bus/quadruna/CRIT/CRIT_tx.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
}
},
"DriveMode": {
"msg_id": 504,
"cycle_time": 100,
"description": "Drive Mode.",
"signals": {
"DriveMode": {
"bits": 4
}
}
},
"msg_id": 504,
"cycle_time": 100,
"description": "Drive Mode.",
"signals": {
"DriveMode": {
"bits": 4
}
}
},
"AlertsContext": {
"msg_id": 505,
"cycle_time": 1000,
Expand Down Expand Up @@ -66,5 +66,18 @@
"bits": 1
}
}
},
"CRITShdnNodeStatus": {
"msg_id": 507,
"cycle_time": 100,
"description": "CRIT Shutdown Node Status",
"signals": {
"ShdnSenOKStatus": {
"bits": 1
},
"InertiaSenOKStatus": {
"bits": 1
}
}
}
}
Loading

0 comments on commit e3954a9

Please sign in to comment.