实现module生成

This commit is contained in:
2026-01-01 21:52:52 +08:00
parent def81cc760
commit f25f474ae8
12 changed files with 373 additions and 12 deletions

View File

@@ -13,10 +13,17 @@
/* Exported variables ------------------------------------------------------- */
// 机器人参数配置
/**
* @brief 机器人参数配置
* @note 在此配置机器人参数
*/
Config_RobotParam_t robot_config = {
/* USER CODE BEGIN robot_config */
.example_param = 0, // 示例参数初始化
// 在此添加您的配置参数初始化
/* USER CODE END robot_config */
};
/* Private function prototypes ---------------------------------------------- */

View File

@@ -9,9 +9,20 @@ extern "C" {
#endif
#include <stdint.h>
#include <stdbool.h>
/**
* @brief 机器人参数配置结构体
* @note 在此添加您的配置参数
*/
typedef struct {
// 示例配置项(可根据实际需求修改或删除)
uint8_t example_param; // 示例参数
/* USER CODE BEGIN Config_RobotParam */
// 在此添加您的配置参数
/* USER CODE END Config_RobotParam */
} Config_RobotParam_t;
/* Exported functions prototypes -------------------------------------------- */

View File

@@ -0,0 +1,3 @@
module_name,description
cmd,命令系统,用于机器人指令处理和行为控制
2_axis_gimbal,双轴云台控制模块支持pitch和yaw轴控制
1 module_name description
2 cmd 命令系统,用于机器人指令处理和行为控制
3 2_axis_gimbal 双轴云台控制模块,支持pitch和yaw轴控制