From de286a52c54daa66efba6622e13063fbacf99045 Mon Sep 17 00:00:00 2001 From: Kidenygood <2979564623@qq.com> Date: Sun, 5 Mar 2023 22:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=89=8D=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/gimbal/gimbal.c | 1 - application/referee/referee.c | 2 -- application/robot.c | 2 +- modules/referee/referee_UI.c | 2 +- modules/referee/referee_def.h | 2 +- 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/application/gimbal/gimbal.c b/application/gimbal/gimbal.c index e7ef766..34d9721 100644 --- a/application/gimbal/gimbal.c +++ b/application/gimbal/gimbal.c @@ -16,7 +16,6 @@ static Gimbal_Ctrl_Cmd_s gimbal_cmd_recv; // 来自cmd的控制信息 void GimbalInit() { - /* syh referee不需要imu暂时关闭以加快初始化速度 */ // gimba_IMU_data = INS_Init(); // IMU先初始化,获取姿态数据指针赋给yaw电机的其他数据来源 // YAW diff --git a/application/referee/referee.c b/application/referee/referee.c index 67cfaed..57ab4c6 100644 --- a/application/referee/referee.c +++ b/application/referee/referee.c @@ -178,8 +178,6 @@ static void robot_mode_change(Referee_Interactive_info_t *_Interactive_data) // static void My_UI_Refresh(referee_info_t *_referee_info, Referee_Interactive_info_t *_Interactive_data) { - // syhtodo 按键刷新 - Mode_Change_Check(_Interactive_data); // chassis if (_Interactive_data->Referee_Interactive_Flag.chassis_flag == 1) diff --git a/application/robot.c b/application/robot.c index d830aad..bc5c929 100644 --- a/application/robot.c +++ b/application/robot.c @@ -24,7 +24,7 @@ void RobotInit() #endif #if defined(ONE_BOARD) || defined(CHASSIS_BOARD) - Referee_Interactive_init();//syh + Referee_Interactive_init(); ChassisInit(); #endif } diff --git a/modules/referee/referee_UI.c b/modules/referee/referee_UI.c index ed1c235..2dc3e36 100644 --- a/modules/referee/referee_UI.c +++ b/modules/referee/referee_UI.c @@ -40,7 +40,7 @@ void UI_Delete(referee_id_t *_id, uint8_t Del_Operate, uint8_t Del_Layer) UI_delete_data.Layer = Del_Layer; UI_delete_data.frametail = Get_CRC16_Check_Sum((uint8_t *)&UI_delete_data, LEN_HEADER + LEN_CMDID + temp_datalength, 0xFFFF); - /* syhtodo为什么填入0xFFFF,关于crc校验 */ + /* 填入0xFFFF,关于crc校验 */ RefereeSend((uint8_t *)&UI_delete_data, LEN_HEADER + LEN_CMDID + temp_datalength + LEN_TAIL); // 发送 diff --git a/modules/referee/referee_def.h b/modules/referee/referee_def.h index 19f6102..4c2312f 100644 --- a/modules/referee/referee_def.h +++ b/modules/referee/referee_def.h @@ -235,7 +235,7 @@ typedef struct /* 交互数据头结构 */ typedef struct { - uint16_t data_cmd_id; //由于存在多个内容 ID,但整个cmd_id 上行频率最大为 10Hz,请合理安排带宽。syhtodo 注意交互部分的上行频率 + uint16_t data_cmd_id; //由于存在多个内容 ID,但整个cmd_id 上行频率最大为 10Hz,请合理安排带宽。注意交互部分的上行频率 uint16_t sender_ID; uint16_t receiver_ID; } ext_student_interactive_header_data_t;