auto_bus/include/rail.h

48 lines
895 B
C
Raw Normal View History

#ifndef AUTO_PILOT_BUS_RAIL_H
#define AUTO_PILOT_BUS_RAIL_H
2022-05-13 11:41:00 +08:00
#include "stdlib.h"
2022-05-13 11:41:00 +08:00
struct rail_node {
/**
*
*/
int id;
/**
*
*/
int last_node_distance;
/**
*
*/
int next_node_distance;
/**
*
*/
struct rail_node* last_node;
/**
*
*/
struct rail_node* next_node;
2022-05-13 11:41:00 +08:00
};
/**
*
*/
typedef struct rail_node rail_node_t;
/**
*
*/
2022-05-06 11:55:30 +08:00
extern rail_node_t* rails;
/**
*
* @param id
* @return
*/
rail_node_t *FindNode(int id);
int add(int a, int b);
#endif //AUTO_PILOT_BUS_RAIL_H