mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
动态UI样例绘制、测试
This commit is contained in:
@@ -30,7 +30,7 @@ void UI_Delete(referee_id_t *_id,uint8_t Del_Operate,uint8_t Del_Layer)
|
||||
UI_delete_data.Layer = Del_Layer;
|
||||
|
||||
UI_delete_data.frametail = Get_CRC16_Check_Sum((uint8_t *)&UI_delete_data,LEN_HEADER+LEN_CMDID+temp_datalength,0xFFFF);
|
||||
/* syhtodo为什么填入0xFFFF */
|
||||
/* syhtodo为什么填入0xFFFF,关于crc校验 */
|
||||
|
||||
RefereeSend((uint8_t *)&UI_delete_data,LEN_HEADER+LEN_CMDID+temp_datalength+LEN_TAIL); //发送
|
||||
|
||||
@@ -321,7 +321,6 @@ void Char_Draw(String_Data_t *graph,char graphname[3],uint32_t Graph_Operate,uin
|
||||
**参数:*graph Graph_Data类型变量指针,用于存放图形数据
|
||||
fmt需要显示的字符串
|
||||
此函数的实现和具体使用类似于printf函数
|
||||
syhtodo 尚未理解该函数的写法
|
||||
**********************************************************************************************************/
|
||||
void Char_Write(String_Data_t *graph,char* fmt, ...)
|
||||
{
|
||||
|
||||
@@ -228,9 +228,7 @@ typedef struct
|
||||
|
||||
/****************************机器人间交互数据****************************/
|
||||
/****************************机器人间交互数据****************************/
|
||||
/* 发送的内容数据段最大为 113 检测是否超出大小限制
|
||||
实际上图形段不会超,数据段最多30个,也不会超,检查验证一下
|
||||
syhtodo */
|
||||
/* 发送的内容数据段最大为 113 检测是否超出大小限制?实际上图形段不会超,数据段最多30个,也不会超下*/
|
||||
/* 交互数据头结构 */
|
||||
typedef struct
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@ referee_info_t *RefereeInit(UART_HandleTypeDef *referee_usart_handle)
|
||||
void RefereeSend(uint8_t *send,uint16_t tx_len)
|
||||
{
|
||||
USARTSend(referee_usart_instance,send,tx_len);
|
||||
/* syhtodo DMA请求过快会导致数据发送丢失,考虑数据尽可能打成一个整包以及队列发送 */
|
||||
/* syhtodo DMA请求过快会导致数据发送丢失,考虑数据尽可能打成一个整包以及队列发送,并且发送函数添加缓冲区 */
|
||||
HAL_Delay(5);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user