god-yuan-hero/User/module/config.h
2025-12-07 14:35:28 +08:00

39 lines
786 B
C

/*
* 配置相关
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include "component/pid.h"
#include "device/motor.h"
#include "device/motor_rm.h"
#include "module/shoot.h"
#include "module/gimbal.h"
#include "module/chassis.h"
#include "module/cmd.h"
#include "component/PowerControl.h"
typedef struct {
Shoot_Params_t shoot_param;
Gimbal_Params_t gimbal_param;
Chassis_Params_t chassis_param;
CMD_Params_t cmd_param;
} Config_RobotParam_t;
extern power_model_t cha;
extern power_model_t cha2;
/* Exported functions prototypes -------------------------------------------- */
/**
* @brief 获取机器人配置参数
* @return 机器人配置参数指针
*/
Config_RobotParam_t* Config_GetRobotParam(void);
#ifdef __cplusplus
}
#endif