mirror of
https://gitee.com/dlmu-cone/half-steering-basic-framework
synced 2026-10-23 17:42:20 +08:00
new brench
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user