From 3153990fe8e0f7fde3dc9f05451c6156245fce11 Mon Sep 17 00:00:00 2001 From: jackfiled Date: Fri, 20 May 2022 13:55:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=85=AC=E4=BA=A4?= =?UTF-8?q?=E8=BD=A6=E7=9B=B8=E5=85=B3=E7=9A=84=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/bus.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/include/bus.h b/include/bus.h index b4b85f0..91c69d8 100644 --- a/include/bus.h +++ b/include/bus.h @@ -30,9 +30,18 @@ extern bus_t *the_bus; * 每个时刻使公交车前进 * @param rails 轨道链表 * @param direction 公交车前进的方向 - * @param bus 公交车 - * @return 公交车是否到达站点 */ -int RunBus(int direction); +void RunBus(int direction); +/** + * 判断公交车是否到站 + * @return + */ +int JudgeOnStation(); + +/** + * 获得公交车当前所在的位置 + * @return 公交车当前所在的位置 + */ +int GetBusPosition(); #endif //AUTO_PILOT_BUS_BUS_H