moved state update function to agilex base class

This commit is contained in:
Ruixiang Du
2021-07-14 10:53:24 +08:00
parent 257787eb1b
commit 0d99c56f95
12 changed files with 176 additions and 166 deletions

View File

@@ -194,8 +194,8 @@ bool DecodeCanFrameV2(const struct can_frame *rx_frame, AgxMessage *msg) {
msg->type = AgxMsgMotionModeState;
MotionModeStateFrame *frame = (MotionModeStateFrame *)(rx_frame->data);
msg->body.motion_mode_feedback_msg.motion_mode = frame->motion_mode;
msg->body.motion_mode_feedback_msg.mode_changing = frame->mode_changing;
msg->body.motion_mode_state_msg.motion_mode = frame->motion_mode;
msg->body.motion_mode_state_msg.mode_changing = frame->mode_changing;
break;
}
/****************** sensor frame *****************/