From 09f7265fd1302b5b4de32409e2949e1ff0cdaba8 Mon Sep 17 00:00:00 2001 From: shmily744 <1527550984@qq.com> Date: Mon, 29 Jan 2024 11:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=9D=BF=E9=80=89=E4=B8=ADya?= =?UTF-8?q?w=5Ferr=E7=9A=84=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/cmd/robot_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/cmd/robot_cmd.c b/application/cmd/robot_cmd.c index 58058e2..2fe4992 100644 --- a/application/cmd/robot_cmd.c +++ b/application/cmd/robot_cmd.c @@ -173,8 +173,8 @@ static void RemoteControlSet() { gimbal_cmd_send.pitch = trajectory_cal.cmd_pitch * 180 / PI; - float yaw_err = fabsf(trajectory_cal.cmd_yaw - gimbal_cmd_send.yaw); - if (yaw_err <= 0.008) //3度 + float yaw_err = fabsf(gimbal_cmd_send.yaw - gimbal_fetch_data.gimbal_imu_data.Yaw); + if (yaw_err <= 3) //3度 aim_select.suggest_fire = 1; else aim_select.suggest_fire = 0;