Skip to content

Commit

Permalink
AIR relay state message included (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
dngusaud authored May 5, 2024
1 parent 8b46a6a commit 148eafa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ can:
baudrate: 250

messages:
- ID: 0x101
can_line: "can3"
message: "RelayState"
- ID: 0x103
can_line: "can3"
message: "AMSError"
Expand Down
7 changes: 7 additions & 0 deletions fs-common-bitproto/can.bitproto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ message AMSError {
bool is_under_voltage = 7; /* If the voltage of the cells is below the threshold */
}

/* Current ID: 0x101 */
message RelayState {
bool AIR_POS = 6; /* AIR Positive Relay State. 1 is closed, 0 is open */
bool PRECHARGE = 7; /* Precharge Relay State. 1 is closed, 0 is open */
bool AIR_NEG = 8; /* AIR Negative Relay State. 1 is closed, 0 is open */
}

/* =============== Go-Kart ================= */

// TODO below are the specific bit lengths needed on the CAN frame for each
Expand Down

0 comments on commit 148eafa

Please sign in to comment.