auto_bus/include/bus.h

44 lines
792 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"
struct {
/**
*
*/
rail_node_t* rail_node_pos;
/**
*
*/
int distance;
} bus;
/**
*
*/
typedef struct bus bus_t;
2022-05-06 11:55:30 +08:00
/**
* 使
* @param rails
* @param direction
* @return
*/
int RunBus(rail_node_t* rails, int direction);
/**
*
* @param rail_node
*/
void UpBus(rail_node_t* rail_node);
/**
*
* @param rail_node
*/
void DownBus(rail_node_t* rail_node);
#endif //AUTO_PILOT_BUS_BUS_H