Skip to content

Commit

Permalink
[SOFT-317] Add babydriver device and message (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandancy authored Sep 26, 2020
1 parent b7df927 commit dcc99b7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 21 additions & 1 deletion can_messages.asciipb
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,26 @@ msg {
}
}

# IDs: 61-63 Reserved
# IDs: 61-62 Reserved

# Common message format for all babydriver messages: see https://uwmidsun.atlassian.net/l/c/XHjUAAK2
msg {
id: 63
source: BABYDRIVER
# target: BABYDRIVER
msg_name: "babydriver"
can_data {
u8 {
field_name_1: "id"
field_name_2: "data0"
field_name_3: "data1"
field_name_4: "data2"
field_name_5: "data3"
field_name_6: "data4"
field_name_7: "data5"
field_name_8: "data6"
}
}
}

# No ID may exceed 63.
2 changes: 2 additions & 0 deletions schema/can.proto
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ message CanMsg {
CHARGER = 10;
IMU = 11;
POWER_SELECTION = 12;

BABYDRIVER = 15;
}

uint32 raw_id = 1; // 0-2047 only
Expand Down

0 comments on commit dcc99b7

Please sign in to comment.