From fc7d649d6da198d4aa35d2901d6454f4af984548 Mon Sep 17 00:00:00 2001 From: "zzzhkgs@gmail.com" Date: Sat, 14 Mar 2026 20:19:59 +0800 Subject: [PATCH] modified: User/module/shoot.c modified: User/task/ctrl_gimbal.c --- User/module/shoot.c | 2 +- User/task/ctrl_gimbal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/User/module/shoot.c b/User/module/shoot.c index 7bf672d..c428521 100644 --- a/User/module/shoot.c +++ b/User/module/shoot.c @@ -14,7 +14,7 @@ static inline void ScaleSumTo1(float *a, float *b) { if (sum > 1.0f) { float scale = 1.0f / sum; *a *= scale; - *b *= scale; + *b *= scale; } } diff --git a/User/task/ctrl_gimbal.c b/User/task/ctrl_gimbal.c index 50dd596..350f723 100644 --- a/User/task/ctrl_gimbal.c +++ b/User/task/ctrl_gimbal.c @@ -61,7 +61,7 @@ void Task_ctrl_gimbal(void *argument) { last_vision_data.target_found = 0; /* 超时强制视为目标丢失 */ /* 将缓存的 yaw/pit 角度清零,避免残留脏数据干扰 */ last_vision_data.yaw = 0.0f; - last_vision_data.pit = 0.0f; + last_vision_data.pit = 0.0f; } }