- shu_send_t.frameHeader_.SOF = 0xA5; //1
-
- shu_send_t.frameHeader_.data_lenth=sizeof(shu_send_t.ext_client_map_command); //2
- shu_send_t.frameHeader_.Seq=3; //1
- memcpy(data_au8,&shu_send_t.frameHeader_,sizeof(shu_send_t.frameHeader_));
-
- Append_CRC8_Check_Sum(data_au8,sizeof(shu_send_t.frameHeader_));
- shu_send_t.frameHeader_.CRC8 = data_au8[4];
- shu_send_t.cmd_id = 0x0305;
- // shu_send_t.ext_student_interactive_header_data.data_cmd_id = 0x0305;
- // shu_send_t.ext_student_interactive_header_data.sender_ID = 109;
- // shu_send_t.ext_student_interactive_header_data.receiver_ID = 105;
- shu_send_t.ext_client_map_command.target_robot_ID = 0x0305;
- shu_send_t.ext_client_map_command.target_position_x = 2000.0;
- shu_send_t.ext_client_map_command.target_position_y = 2000.0;
复制代码 |