32 lines
552 B
C
32 lines
552 B
C
#ifndef ROBOT_CMD_H
|
|
#define ROBOT_CMD_H
|
|
#include "remote_control.h"
|
|
|
|
typedef struct
|
|
{
|
|
struct
|
|
{
|
|
int16_t x;
|
|
int16_t y;
|
|
uint8_t press_l;
|
|
uint8_t press_r;
|
|
} mouse;
|
|
|
|
Key_t key[3];
|
|
uint8_t key_count[3][16];
|
|
}VT_ctrl_t; //图传链路下发的遥控数据
|
|
|
|
|
|
/**
|
|
* @brief 机器人核心控制任务初始化,会被RobotInit()调用
|
|
*
|
|
*/
|
|
void RobotCMDInit();
|
|
|
|
/**
|
|
* @brief 机器人核心控制任务,200Hz频率运行(必须高于视觉发送频率)
|
|
*
|
|
*/
|
|
void RobotCMDTask();
|
|
|
|
#endif // !ROBOT_CMD_H
|