37 lines
785 B
C
37 lines
785 B
C
/*
|
|
* 配置相关
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include "component/pid.h"
|
|
#include "device/motor.h"
|
|
#include "device/motor_dm.h"
|
|
#include "module/chassis.h"
|
|
#include "module/cmd/cmd.h"
|
|
#include "component/PowerControl.h"
|
|
typedef struct {
|
|
// Arm_Params_t arm_param;
|
|
Chassis_Param_t chassis_param;
|
|
CMD_Config_t cmd_param;
|
|
} Config_RobotParam_t;
|
|
|
|
/* Exported variables ------------------------------------------------------- */
|
|
extern power_model_t cha;
|
|
extern power_model_t cha2;
|
|
/* Exported functions prototypes -------------------------------------------- */
|
|
|
|
/**
|
|
* @brief 获取机器人配置参数
|
|
* @return 机器人配置参数指针
|
|
*/
|
|
Config_RobotParam_t* Config_GetRobotParam(void);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|