修复电机丢失保护

This commit is contained in:
kai
2024-05-24 18:39:06 +08:00
parent 613510642c
commit a7dc01af5c
4 changed files with 11 additions and 11 deletions

View File

@@ -121,7 +121,7 @@ HTMotorInstance *HTMotorInit(Motor_Init_Config_s *config)
Daemon_Init_Config_s conf = {
.callback = HTMotorLostCallback,
.owner_id = motor,
.reload_count = 5, // 50ms
.reload_count = 50, // 50ms
};
motor->motor_daemon = DaemonRegister(&conf);

View File

@@ -82,7 +82,7 @@ LKMotorInstance *LKMotorInit(Motor_Init_Config_s *config)
Daemon_Init_Config_s daemon_config = {
.callback = LKMotorLostCallback,
.owner_id = motor,
.reload_count = 5, // 50ms
.reload_count = 50, // 50ms
};
motor->daemon = DaemonRegister(&daemon_config);