mirror of
https://gitee.com/dlmu-cone/half-steering-basic-framework
synced 2026-10-23 17:42:20 +08:00
赛场_v1.2
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "message_center.h"
|
||||
#include "general_def.h"
|
||||
#include "dji_motor.h"
|
||||
#include "referee_task.h"
|
||||
// bsp
|
||||
#include "bsp_dwt.h"
|
||||
#include "bsp_log.h"
|
||||
@@ -255,6 +256,15 @@ static void MouseKeySet()
|
||||
rc_data[TEMP].key_count[KEY_PRESS][Key_G] = 0; // 清除计数器,防止重复执行
|
||||
}
|
||||
|
||||
// B键刷新裁判系统UI
|
||||
if (rc_data[TEMP].key[KEY_PRESS].b && rc_data[TEMP].key_count[KEY_PRESS][Key_B] > 0) {
|
||||
MyUIInit(); // 重新初始化UI
|
||||
rc_data[TEMP].key_count[KEY_PRESS][Key_B] = 0; // 清除计数器,防止重复执行
|
||||
}
|
||||
|
||||
// 将robot_level传递给底盘控制命令
|
||||
chassis_cmd_send.robot_level = robot_level;
|
||||
|
||||
switch (robot_level)
|
||||
{
|
||||
case 1:
|
||||
|
||||
Reference in New Issue
Block a user