From 96bf616f18015dffaa50a894e12ffc1f052042b1 Mon Sep 17 00:00:00 2001 From: lyf <169361657@qq.com> Date: Sat, 28 Mar 2026 10:50:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=9C=E8=89=B2=E5=92=8C?= =?UTF-8?q?=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- main.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ef1a302..ce833e2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 上海交通大学 RoboMaster 2019赛季 视觉代码 +# 黑龙江大学 RoboMaster 2026 赛季 哨兵代码 本代码是上海交通大学RoboMaster2019赛季步兵车辆的视觉部分,分为三个模块:**装甲板识别**,**能量机关**,以及**封装的设备驱动和配置文件**。可以提取能量机关以外的模块并修改main函数直接作为哨兵识别代码。 diff --git a/main.cpp b/main.cpp index 13c9dc3..52ce99b 100644 --- a/main.cpp +++ b/main.cpp @@ -44,7 +44,9 @@ WrapperHead *video = nullptr; // 云台摄像头视频源 Serial serial(115200); // 串口对象 uint8_t last_state = ARMOR_STATE; // 上次状态,用于初始化 // 自瞄主程序对象 -ArmorFinder armor_finder(mcu_data.enemy_color, serial, PROJECT_DIR"/tools/para/", mcu_data.anti_top); +uint8_t enemy_color = ENEMY_BLUE;//RED ro BLUE +uint8_t forced_anti_top = 1; +ArmorFinder armor_finder(enemy_color, serial, PROJECT_DIR"/tools/para/", forced_anti_top); // 能量机关主程序对象 Energy energy(serial, mcu_data.enemy_color);