/****************************************************************************** 版权所有 (C), 2018-2099, Radkil ****************************************************************************** 文 件 名 : controller.c 版 本 号 : 初稿 作 者 : radkil 生成日期 : 2026年4月14日 最近修改 : 功能描述 : 遥控器具体实现 修改历史 : 1.日 期 : 2026年4月14日 作 者 : radkil 修改内容 : 创建文件 ******************************************************************************/ #ifdef BUILD_CTRL2 #include "robot.h" /*----------------------------------------------* * 外部变量说明 * *----------------------------------------------*/ /*----------------------------------------------* * 外部函数原型说明 * *----------------------------------------------*/ /*----------------------------------------------* * 内部函数原型说明 * *----------------------------------------------*/ /*----------------------------------------------* * 全局变量 * *----------------------------------------------*/ /*----------------------------------------------* * 模块级变量 * *----------------------------------------------*/ /*----------------------------------------------* * 常量定义 * *----------------------------------------------*/ /*----------------------------------------------* * 宏定义 * *----------------------------------------------*/ void ControllerStrong(void) { // 用于强符号覆盖的锚点 } int ControllerInit(void) { printf("This is ctrl2.\n"); return RB_SUCCESS; } ERobotCmd ControllerInputStateMachine(void) { printf("This is ctrl2. controller state!\n"); return RB_STOP; } void ControllerDisplayPressure(int _iValue) { printf("This is ctrl2. display pressure[%d]!\n", _iValue); } #endif