new brench

This commit is contained in:
Zorua
2026-01-17 18:39:27 +08:00
parent 26f210da12
commit 734d04ec10
4 changed files with 6 additions and 6 deletions

View File

@@ -85,7 +85,7 @@ static void CalcOffsetAngle()
static float last_offset_angle = 0;
const float smooth_factor = 0.3f; // 平滑因子,0~1之间,值越大平滑效果越明显
float new_offset = gimbal_fetch_data.yaw_motor_total_angle - YAW_ALIGN_ANGLE;
#if YAW_CHASSIS_REVERSE
#if YAW_ECD_GREATER_THAN_4096
new_offset = -new_offset;
#endif
float angle_diff = new_offset - last_offset_angle;