mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
moved state update function to agilex base class
This commit is contained in:
@@ -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 *****************/
|
||||
|
||||
Reference in New Issue
Block a user