auto_bus/include/bus.h

39 lines
637 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-17 20:22:29 +08:00
* @param bus
2022-05-06 11:55:30 +08:00
* @return
*/
int RunBus(int direction);
2022-05-06 11:55:30 +08:00
#endif //AUTO_PILOT_BUS_BUS_H