auto_bus/include/bus.h

48 lines
760 B
C
Raw Normal View History

#ifndef AUTO_PILOT_BUS_BUS_H
#define AUTO_PILOT_BUS_BUS_H
2022-05-06 11:55:30 +08:00
#include "define.h"
#include "rail.h"
2022-05-06 11:55:30 +08:00
#include "query.h"
2022-05-13 11:41:00 +08:00
struct bus {
/**
*
*/
rail_node_t* rail_node_pos;
/**
*
*/
int distance;
2022-05-13 11:41:00 +08:00
};
/**
*
*/
typedef struct bus bus_t;
/**
*
*/
extern bus_t *the_bus;
2022-05-06 11:55:30 +08:00
/**
* 使
* @param rails
* @param direction
*/
2022-05-20 13:55:48 +08:00
void RunBus(int direction);
2022-05-06 11:55:30 +08:00
2022-05-20 13:55:48 +08:00
/**
*
* @return
*/
int JudgeOnStation();
/**
*
* @return
*/
int GetBusPosition();
#endif //AUTO_PILOT_BUS_BUS_H