修正默认偏转角

This commit is contained in:
cyy_mac
2026-08-07 20:13:49 +08:00
parent 78d155c7b6
commit 576784bb4d
5 changed files with 13 additions and 7 deletions

View File

@@ -465,10 +465,9 @@ void TIM12_SERVO_Init(u16 arr,u16 psc)
//Enable timer //使能定时器
TIM_Cmd(TIM12, ENABLE);
//The channel value is initialized to 1500, corresponding to the steering gear zero
//通道值初始化为1500舵机零点对应值
TIM12->CCR2=1500;
TIM12->CCR1=1500;
//Initialize both servo channels to the configured steering center.
TIM12->CCR2=SERVO_INIT;
TIM12->CCR1=SERVO_INIT;
}