仓库提交练习
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

65 lines
2.0 KiB

/******************************************************************************
版权所有 (C), 2018-2099, Radkil
******************************************************************************
文 件 名 : swing_if.c
版 本 号 : 初稿
作 者 : radkil
生成日期 : 2026年4月14日
最近修改 :
功能描述 : 摆臂抽象层
修改历史 :
1.日 期 : 2026年4月14日
作 者 : radkil
修改内容 : 创建文件
******************************************************************************/
#include "robot.h"
/*----------------------------------------------*
* 外部变量说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 外部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 内部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 全局变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 模块级变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 常量定义 *
*----------------------------------------------*/
/*----------------------------------------------*
* 宏定义 *
*----------------------------------------------*/
WEAK int SwingArmInit(void)
{
printf("Not support swing.\n");
return RB_NOSWING; //这里返回成功是因为可能机器人没有摆臂
}
WEAK void SwingArmWork(void)
{
printf("Not support swing work.\n");
}
WEAK int SwingArmGetParam(void)
{
printf("Not support swing get param.\n");
return 0;
}