modified: User/module/shoot.c

modified:   User/task/ctrl_gimbal.c
This commit is contained in:
zzzhkgs@gmail.com 2026-03-14 20:19:59 +08:00
parent ed1a174ab1
commit fc7d649d6d
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}