This commit is contained in:
REASEARCHER\18383 2025-08-20 17:14:15 +08:00
parent a345b34dd0
commit d77d71aa34
3 changed files with 3 additions and 15 deletions

View File

@ -153,19 +153,6 @@ static void ptz_hori_step_speed_task()
g_ptz.hori_tmc2160.f = 0;
}
}
// else
// {
// if(GetDcstepPulseFlag())
// {
// ptz_hori_timer_start(4000);//水平DC0长时间未输出有效高电平使STEP引脚输出一段125us的脉冲
// SetDcstepPulseFlag();
// }
// else
// {
// ptz_hori_timer_stop();
// }
//
// }
OSTimeDlyHMSM(0u, 0u, 0u, PTZ_HORI_ACC_DEC_INC_T);
}

View File

@ -41,6 +41,7 @@
#define TMC2160_PWM_SCALE 0x71 //只读,斩波调幅结果
#define TMC2160_PWM_AUTO 0x72 //只读,自动标定的偏移值
#define TMC2160_LOST_STEPS 0x73 //只读,
#define TMC2160_SW_MODE 0x34 //只读,

View File

@ -237,7 +237,7 @@ void ptz_uart_dev_send(device_handle device, void *data, int len)
if(device == uart_485_handle)
{
PTZ_UART_485_TX;
OSTimeDlyHMSM(0u, 0u, 0u, 10u);
OSTimeDlyHMSM(0u, 0u, 0u, 1u);
for (int i = 0; i<len; i++)
{
@ -254,7 +254,7 @@ void ptz_uart_dev_send(device_handle device, void *data, int len)
}
}
OSTimeDlyHMSM(0u, 0u, 0u, 10u);
OSTimeDlyHMSM(0u, 0u, 0u, 1u);
PTZ_UART_485_RX;
}