go/User/task/can_task.c
2025-03-03 19:41:03 +08:00

27 lines
456 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* can发送与解码任务
*/
#include "can_task.h"
#include "TopDefine.h"
#include "attrTask.h"
#include "djiMotor.h"
/**
* \brief can任务
*
* \param argument 未使用
*/
void Task_Can(void *argument)
{
(void)argument; /* 未使用argument消除警告 */
djiInit();//FIFO滤波器初始化
Odrive_Can_Init();
while(1)
{
waitNewDji();//等待新数据
djiMotorEncode();//数据解析
}
}