2026.6.2小更新

This commit is contained in:
2026-06-02 11:34:16 +08:00
parent c6fc0dd775
commit 41500b6e6a
3 changed files with 5 additions and 5 deletions
+2 -1
View File
@@ -7,6 +7,7 @@
- control.py:PID计算和MAVLink指令发送方法的定义(已废弃);
- fc_test:获取飞控信息的测试脚本;
- infer_camera_direct.py:通过摄像头检测目标并调用方法控制无人机;
- infer_camera_modular.py:模块化处理过的摄像头检测与控制(未测试)
- infer_camera_video.py:使用视频检测目标并调用方法控制无人机(用于测试);
- infer.py:使用图片检测目标,仅用于测试环境;
#### 无人机控制部分:
@@ -15,7 +16,7 @@
- pid_counter.py:抽离出来的PID计算器
#### 自动巡点飞行业务:
- mission_manager.py:自动巡点飞行的控制模块
- run_mission.py:自动巡点飞行的业务测试
- run_mission.py:自动巡点飞行的业务测试(未测试)
#### 目录:
- om:推理使用的.om文件
- drone_controller:控制模块
+3 -3
View File
@@ -226,10 +226,10 @@ class UAVControlLoop:
# ==================== 主程序入口 ======================
def main():
# 默认加载同目录下的 uav_config.json
config_file = "uav_config.json"
# 默认加载同目录下的 config.json
config_file = "config.json"
# 进阶功能:允许在命令行指定 json 路径,例如: python3 infer_camera_modular.py config_outdoor.json
# 允许在命令行指定 json 路径,例如: python3 infer_camera_modular.py config_outdoor.json
if len(sys.argv) > 1:
config_file = sys.argv[1]
-1
View File
@@ -1,4 +1,3 @@
# run_mission.py
import time
from drone_controller.base_control import DroneController
from drone_controller.mission_manager import MissionManager