仓库提交练习
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.
 
 
 

93 lines
2.9 KiB

/******************************************************************************
版权所有 (C), 2018-2099, Radkil
******************************************************************************
文 件 名 : controller_if.c
版 本 号 : 初稿
作 者 : radkil
生成日期 : 2026年4月14日
最近修改 :
功能描述 : 遥控器接口抽象层
修改历史 :
1.日 期 : 2026年4月14日
作 者 : radkil
修改内容 : 创建文件
******************************************************************************/
#include "robot.h"
/*----------------------------------------------*
* 外部变量说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 外部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 内部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 全局变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 模块级变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 常量定义 *
*----------------------------------------------*/
/*----------------------------------------------*
* 宏定义 *
*----------------------------------------------*/
WEAK int ControllerInit(void)
{
printf("Error! This is necessary.\n");
return RB_FAILURE;
}
/*****************************************************************************
函 数 名 : ControllerInputStateMachine
功能描述 : 遥控器解析命令状态机
输入参数 : void
输出参数 : 无
返 回 值 : ERobotCmd
调用函数 :
被调函数 :
修改历史 :
1.日 期 : 2026年4月14日
作 者 : radkil
修改内容 : 新生成函数
*****************************************************************************/
WEAK ERobotCmd ControllerInputStateMachine(void)
{
printf("Not support controller state!\n");
return RB_STOP;
}
/*****************************************************************************
函 数 名 : ControllerDisplayPressure
功能描述 : 遥控器显示当前压力
输入参数 : int _iValue
输出参数 : 无
返 回 值 : void
调用函数 :
被调函数 :
修改历史 :
1.日 期 : 2026年4月14日
作 者 : radkil
修改内容 : 新生成函数
*****************************************************************************/
WEAK void ControllerDisplayPressure(int _iValue)
{
printf("Not support display pressure[%d]!\n", _iValue);
}