增加键鼠控制

This commit is contained in:
chenfu
2023-03-27 22:03:35 +08:00
parent cce87bcccd
commit f3ad804048
8 changed files with 193 additions and 81 deletions

View File

@@ -84,7 +84,7 @@ void VisionSend(Vision_Send_s *send)
static uint8_t send_buff[VISION_SEND_SIZE];
static uint16_t tx_len;
// TODO: code to set flag_register
flag_register = 30<<8|0b00000001;
// 将数据转化为seasky协议的数据包
get_protocol_send_data(0x02, flag_register, &send->yaw, 3, send_buff, &tx_len);
USARTSend(vision_usart_instance, send_buff, tx_len, USART_TRANSFER_DMA); // 和视觉通信使用IT,防止和接收使用的DMA冲突