救火版本

This commit is contained in:
Zorua
2026-03-29 17:50:41 +08:00
parent d5601ffde9
commit 1d5e1100f6

View File

@@ -251,7 +251,7 @@ static void MouseKeySet()
gimbal_cmd_send.yaw += (float)rc_data[TEMP].mouse.x / 660 * 10; // 系数待测 gimbal_cmd_send.yaw += (float)rc_data[TEMP].mouse.x / 660 * 10; // 系数待测
gimbal_cmd_send.pitch += (float)rc_data[TEMP].mouse.y / 660 * 8; gimbal_cmd_send.pitch += (float)rc_data[TEMP].mouse.y / 660 * 8;
// 云台软件限位 // 云台软件限位1
if (gimbal_cmd_send.pitch > PITCH_MAX_ANGLE) if (gimbal_cmd_send.pitch > PITCH_MAX_ANGLE)
gimbal_cmd_send.pitch = PITCH_MAX_ANGLE; gimbal_cmd_send.pitch = PITCH_MAX_ANGLE;
else if (gimbal_cmd_send.pitch < PITCH_MIN_ANGLE) else if (gimbal_cmd_send.pitch < PITCH_MIN_ANGLE)