修lz和imu
This commit is contained in:
parent
96feb958a5
commit
22a71d3d04
@ -252,8 +252,9 @@ int8_t DM_IMU_AutoUpdateAll(DM_IMU_t *imu){
|
|||||||
count++;
|
count++;
|
||||||
if (count >= 4) {
|
if (count >= 4) {
|
||||||
count = 0; // 重置计数器
|
count = 0; // 重置计数器
|
||||||
|
return DEVICE_OK;
|
||||||
}
|
}
|
||||||
return DEVICE_OK;
|
return DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -243,14 +243,6 @@ int8_t MOTOR_LZ_Init(void) {
|
|||||||
return BSP_CAN_RegisterIdParser(MOTOR_LZ_IdParser) == BSP_OK ? DEVICE_OK : DEVICE_ERR;
|
return BSP_CAN_RegisterIdParser(MOTOR_LZ_IdParser) == BSP_OK ? DEVICE_OK : DEVICE_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief 反初始化灵足电机驱动系统
|
|
||||||
* @return 设备状态码
|
|
||||||
*/
|
|
||||||
int8_t MOTOR_LZ_DeInit(void) {
|
|
||||||
// 注销ID解析器
|
|
||||||
return BSP_CAN_UnregisterIdParser() == BSP_OK ? DEVICE_OK : DEVICE_ERR;
|
|
||||||
}
|
|
||||||
|
|
||||||
int8_t MOTOR_LZ_Register(MOTOR_LZ_Param_t *param) {
|
int8_t MOTOR_LZ_Register(MOTOR_LZ_Param_t *param) {
|
||||||
if (param == NULL) return DEVICE_ERR_NULL;
|
if (param == NULL) return DEVICE_ERR_NULL;
|
||||||
|
|||||||
@ -111,12 +111,6 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
int8_t MOTOR_LZ_Init(void);
|
int8_t MOTOR_LZ_Init(void);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief 反初始化灵足电机驱动系统
|
|
||||||
* @return 设备状态码
|
|
||||||
*/
|
|
||||||
int8_t MOTOR_LZ_DeInit(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 注册一个灵足电机
|
* @brief 注册一个灵足电机
|
||||||
* @param param 电机参数
|
* @param param 电机参数
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user