shoot/User/task/rc_task.c
2025-04-05 16:11:38 +08:00

27 lines
493 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.

/**
* 遥控器发送与解码任务
*/
#include "TopDefine.h"
#include "attrTask.h"
#include "rc_task.h"
#include "remote_control.h"
extern RC_mess_t RC_mess;
// sw[0]2 下306上1694 sw[5]3前306后1694 sw[4]4前1694后306 sw[1]xuan1 sw[3]xuan2
/**
* \brief 遥控器任务
*
* \param argument 未使用
*/
void Task_Rc(void *argument)
{
(void)argument; /* 未使用argument消除警告 */
RC_init();
while(1)
{
RC_WaitNew();
RC_rx_analysis();
}
}