modified: User/module/shoot.c
modified: User/task/ctrl_gimbal.c
This commit is contained in:
parent
ed1a174ab1
commit
fc7d649d6d
@ -14,7 +14,7 @@ static inline void ScaleSumTo1(float *a, float *b) {
|
|||||||
if (sum > 1.0f) {
|
if (sum > 1.0f) {
|
||||||
float scale = 1.0f / sum;
|
float scale = 1.0f / sum;
|
||||||
*a *= scale;
|
*a *= scale;
|
||||||
*b *= scale;
|
*b *= scale;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -61,7 +61,7 @@ void Task_ctrl_gimbal(void *argument) {
|
|||||||
last_vision_data.target_found = 0; /* 超时强制视为目标丢失 */
|
last_vision_data.target_found = 0; /* 超时强制视为目标丢失 */
|
||||||
/* 将缓存的 yaw/pit 角度清零,避免残留脏数据干扰 */
|
/* 将缓存的 yaw/pit 角度清零,避免残留脏数据干扰 */
|
||||||
last_vision_data.yaw = 0.0f;
|
last_vision_data.yaw = 0.0f;
|
||||||
last_vision_data.pit = 0.0f;
|
last_vision_data.pit = 0.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user