代码优雅化重构: CameraHandler拆9个函数+删serial死代码+常量统一+死亡参数清理+camera.h精简
This commit is contained in:
+2
-1
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user