Skip to content

Commit

Permalink
protocol_v2: added CAN_MSG_SET_MOTION_MODE_ID decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
rdu-weston committed Aug 1, 2024
1 parent 4b19dab commit ea87331
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/protocol_v2/agilex_msg_parser_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ bool DecodeCanFrameV2(const struct can_frame *rx_frame, AgxMessage *msg) {
1000.0;
break;
}
case CAN_MSG_SET_MOTION_MODE_ID: {
msg->type = AgxMsgSetMotionModeCommand;
SetMotionModeFrame *frame = (SetMotionModeFrame *)(rx_frame->data);
msg->body.motion_mode_msg.motion_mode = frame->motion_mode;
break;
}
case CAN_MSG_LIGHT_COMMAND_ID: {
msg->type = AgxMsgLightCommand;
// parse frame buffer to message
Expand Down

0 comments on commit ea87331

Please sign in to comment.