36 lines
649 B
C
36 lines
649 B
C
/*
|
|
* 配置相关
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include "device/dm_imu.h"
|
|
#include "device/motor_lz.h"
|
|
#include "device/motor_lk.h"
|
|
#include "module/balance_chassis.h"
|
|
|
|
|
|
typedef struct {
|
|
DM_IMU_Param_t imu_param;
|
|
MOTOR_LZ_Param_t joint_motors[4];
|
|
MOTOR_LK_Param_t wheel_motors[2];
|
|
Chassis_Params_t chassis_param;
|
|
} Config_RobotParam_t;
|
|
|
|
/* Exported functions prototypes -------------------------------------------- */
|
|
|
|
/**
|
|
* @brief 获取机器人配置参数
|
|
* @return 机器人配置参数指针
|
|
*/
|
|
Config_RobotParam_t* Config_GetRobotParam(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|