mirror of
https://github.com/goldenfishs/MRobot.git
synced 2026-03-31 21:07:14 +08:00
实现module生成
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
bsp,can,fdcan,dwt,gpio,i2c,mm,spi,uart,pwm,time,flash
|
||||
component,ahrs,capacity,cmd,crc8,crc16,error_detect,filter,FreeRTOS_CLI,limiter,mixer,pid,ui,user_math
|
||||
device,dr16,bmi088,ist8310,motor,motor_rm,motor_dm,motor_vesc,motor_lk,motor_lz,motor_odrive,dm_imu,rc_can,servo,buzzer,led,ws2812,vofa,ops9,oid,lcd_driver
|
||||
module,config,
|
||||
module,
|
||||
|
@@ -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 ---------------------------------------------- */
|
||||
|
||||
@@ -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 -------------------------------------------- */
|
||||
|
||||
3
assets/User_code/module/describe.csv
Normal file
3
assets/User_code/module/describe.csv
Normal file
@@ -0,0 +1,3 @@
|
||||
module_name,description
|
||||
cmd,命令系统,用于机器人指令处理和行为控制
|
||||
2_axis_gimbal,双轴云台控制模块,支持pitch和yaw轴控制
|
||||
|
Reference in New Issue
Block a user