mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-23 19:25:09 +08:00
修复电机丢失保护
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user