代码优雅化重构: CameraHandler拆9个函数+删serial死代码+常量统一+死亡参数清理+camera.h精简

This commit is contained in:
spdis
2026-06-13 14:07:35 +08:00
parent d251f08670
commit 54a9915bf5
5 changed files with 381 additions and 318 deletions
+2 -1
View File
@@ -29,7 +29,8 @@ aux_source_directory(src DIR_SRCS)
# vl53l0x.cpp — 激光测距, 硬件未接
# zebra_detect.cpp — 经典斑马线检测, 已被 Mild 模型替代
# PIDController.cpp — PID 类未使用 (电机开环直驱)
list(FILTER DIR_SRCS EXCLUDE REGEX "(vl53l0x\\.cpp|zebra_detect\\.cpp|PIDController\\.cpp)")
# serial.cpp — Vofa/串口图传未使用
list(FILTER DIR_SRCS EXCLUDE REGEX "(vl53l0x\\.cpp|zebra_detect\\.cpp|PIDController\\.cpp|serial\\.cpp)")
# 静态库 + 主程序
add_library(common_lib STATIC ${DIR_SRCS})