重新组织了裁判系统相关模块的结构

This commit is contained in:
NeoZng
2023-04-19 18:52:40 +08:00
parent 5c9c7962c8
commit f6c686598d
18 changed files with 615 additions and 704 deletions

View File

@@ -16,12 +16,7 @@
#include "dji_motor.h"
#include "super_cap.h"
#include "message_center.h"
// referee需要移动到module层
/////////////////////////
#include "rm_referee.h"
/////////////////////////
#include "general_def.h"
#include "bsp_dwt.h"
@@ -47,6 +42,9 @@ static Subscriber_t *chassis_sub; // 用于订阅底盘的控
static Chassis_Ctrl_Cmd_s chassis_cmd_recv; // 底盘接收到的控制命令
static Chassis_Upload_Data_s chassis_feedback_data; // 底盘回传的反馈数据
static referee_info_t* referee_data; // 用于获取裁判系统的数据
static Referee_Interactive_info_t ui_data; // UI数据
static SuperCapInstance *cap; // 超级电容
static DJIMotorInstance *motor_lf, *motor_rf, *motor_lb, *motor_rb; // left right forward back
@@ -105,7 +103,7 @@ void ChassisInit()
chassis_motor_config.controller_setting_init_config.motor_reverse_flag = MOTOR_DIRECTION_REVERSE;
motor_rb = DJIMotorInit(&chassis_motor_config);
// referee_data = RefereeInit(&huart6); // 裁判系统初始化
referee_data = RefereeInit(&huart6,&ui_data); // 裁判系统初始化
// while (referee_data->GameRobotState.robot_id ==0);
// Referee_Interactive_init(referee_data);