You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.6 KiB
79 lines
2.6 KiB
|
5 days ago
|
/******************************************************************************
|
||
|
|
|
||
|
|
版权所有 (C), 2018-2099, Radkil
|
||
|
|
|
||
|
|
******************************************************************************
|
||
|
5 days ago
|
文 件 名 : msp_TI5MOTOR.c
|
||
|
5 days ago
|
版 本 号 : 初稿
|
||
|
|
作 者 : radkil
|
||
|
|
生成日期 : 2026年6月8日
|
||
|
|
最近修改 :
|
||
|
5 days ago
|
功能描述 : TI5电机
|
||
|
5 days ago
|
|
||
|
|
修改历史 :
|
||
|
|
1.日 期 : 2026年6月8日
|
||
|
|
作 者 : radkil
|
||
|
|
修改内容 : 创建文件
|
||
|
|
|
||
|
|
******************************************************************************/
|
||
|
|
|
||
|
|
/*----------------------------------------------*
|
||
|
|
* 外部变量说明 *
|
||
|
|
*----------------------------------------------*/
|
||
|
|
|
||
|
|
/*----------------------------------------------*
|
||
|
|
* 外部函数原型说明 *
|
||
|
|
*----------------------------------------------*/
|
||
|
|
|
||
|
|
/*----------------------------------------------*
|
||
|
|
* 内部函数原型说明 *
|
||
|
|
*----------------------------------------------*/
|
||
|
|
|
||
|
|
/*----------------------------------------------*
|
||
|
|
* 全局变量 *
|
||
|
|
*----------------------------------------------*/
|
||
|
|
|
||
|
|
/*----------------------------------------------*
|
||
|
|
* 模块级变量 *
|
||
|
|
*----------------------------------------------*/
|
||
|
|
|
||
|
|
/*----------------------------------------------*
|
||
|
|
* 常量定义 *
|
||
|
|
*----------------------------------------------*/
|
||
|
|
|
||
|
|
/*----------------------------------------------*
|
||
|
|
* 宏定义 *
|
||
|
|
*----------------------------------------------*/
|
||
|
|
|
||
|
5 days ago
|
//void Motor_ClearFault(uint8_t id, FDCANHandler *Ti5_Motor_Controller,
|
||
|
|
// int WaitTime)
|
||
|
|
//{
|
||
|
|
// OneByteCommand(id, 0x0B, Ti5_Motor_Controller, WaitTime);
|
||
|
|
//}
|
||
|
|
//
|
||
|
|
//void Motor_GetFaultState(uint8_t id, FDCANHandler *Ti5_Motor_Controller,
|
||
|
|
//int WaitTime)
|
||
|
|
//{
|
||
|
|
// OneByteCommand(id, 0x0A, Ti5_Motor_Controller, WaitTime); // set motor stop mode
|
||
|
|
//
|
||
|
|
//}
|
||
|
|
//
|
||
|
|
//void GetCSPByCommand(uint8_t id, FDCANHandler *Ti5_Motor_Controller,
|
||
|
|
// int WaitTime)
|
||
|
|
//{
|
||
|
|
// OneByteCommand(id, 0x41, Ti5_Motor_Controller, WaitTime);
|
||
|
|
//}
|
||
|
|
//
|
||
|
|
//void Motor_SetVelocityModeAndTargetVelocity(uint8_t id,
|
||
|
|
// int32_t targetSpeed,
|
||
|
|
// FDCANHandler *Ti5_Motor_Controller,
|
||
|
|
// int WaitTime)
|
||
|
|
//{
|
||
|
|
// FiveByteCommand(id, 0x1d, targetSpeed, Ti5_Motor_Controller, WaitTime); //Motor_SetVelocityModeAndTargetVelocity
|
||
|
|
//}
|
||
|
|
|
||
|
|
void TI5MOTOR_Init(void)
|
||
|
5 days ago
|
{
|
||
|
5 days ago
|
return;
|
||
|
5 days ago
|
}
|