my_ui_init测试

This commit is contained in:
Kidenygood 2023-04-03 22:16:41 +08:00
parent b37ceaa2e9
commit 79ace733d3
2 changed files with 8 additions and 15 deletions

View File

@ -31,18 +31,13 @@ void Referee_Interactive_init()
{
referee_data = RefereeInit(&huart6); // 裁判系统初始化
// while (referee_data->GameRobotState.robot_id == 0);
referee_data->GameRobotState.robot_id = 101; // syhtodo RobotInit中关闭了中断进行初始化无法读取到裁判系统的ID暂时在此处写死
referee_data->GameRobotState.robot_id = 103; // syhtodo RobotInit中关闭了中断进行初始化无法读取到裁判系统的ID暂时在此处写死
determine_ID(referee_data);
// My_UI_init(referee_data);
UI_test_init(referee_data); // syhtodo此处先使用测试函数
// syhtodo此处先关闭机器人车间通信
// for (int i=0;i<Communicate_Data_LEN;i++)
// {
// SendData->data[i]=i+1;
// }
// referee_data->referee_id.Receiver_Robot_ID = RobotID_BEngineer; // 机器人车间通信时接收者的ID暂时发给蓝色2
// Communicate_SendData(&referee_data->referee_id,SendData);
My_UI_init(referee_data);
// UI_test_init(referee_data); // 测试函数
RefereeSend();
//如果此处还要加入车间通信初始化注意将referee和车间通信的数据合并后再使用
//refereesend函数永远是最后一步
}
void Referee_Interactive_task()
@ -381,6 +376,4 @@ static void UI_test_init(referee_info_t *_referee_info)
Char_Draw(&sdata[0], "s7", UI_Graph_ADD, 0, UI_Color_Green, 20, 2, 620, 710);
Char_Write(&sdata[0], "number:%d", 123);
Char_ReFresh(&_referee_info->referee_id, sdata[0]);
RefereeSend();
}

View File

@ -7,12 +7,12 @@
extern uint8_t UI_Seq;
#pragma pack(1)
#define RE_TX_BUFFER_SIZE 1024
#define RE_TX_BUFFER_SIZE 512
//发送缓冲区结构体定义
typedef struct
{
uint8_t buffer[RE_TX_BUFFER_SIZE];
uint8_t pos;
uint16_t pos;
} referee_tx_buffer_t;
typedef struct