add vision protocol

This commit is contained in:
NeoZng
2022-11-03 20:38:55 +08:00
parent 25501650ce
commit 95607668e1
12 changed files with 537 additions and 25 deletions

View File

@@ -2,7 +2,26 @@
#define MASTER_PROCESS_H
#include "bsp_usart.h"
#include "usart.h"
#include "seasky_protocol.h"
#define VISION_RECV_SIZE 36u
#define VISION_SEND_SIZE 36u
/**
* @brief 调用此函数初始化和视觉的串口通信
*
* @param handle 用于和视觉通信的串口handle(C板上一般为USART1,丝印为USART2,4pin)
*/
void VisionInit(UART_HandleTypeDef* handle);
/**
* @brief 发送视觉视觉
*
* @param send 视觉需要的数据
*/
void VisionSend(Vision_Send_s *send);
#endif // !MASTER_PROCESS_H